Skip to content

Commit ed74c54

Browse files
committed
chore(VSnackbar): deprecate multi-line prop
1 parent 6cefd46 commit ed74c54

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/api-generator/src/locale/en/VSnackbar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"props": {
33
"app": "Respects boundaries of—and will not overlap with—other `app` components like `v-app-bar`, `v-navigation-drawer`, and `v-footer`.",
44
"centered": "Positions the snackbar in the center of the screen, (x and y axis).",
5-
"multiLine": "Gives the snackbar a larger minimum height.",
5+
"multiLine": "Deprecated, use `min-height` instead. Increases minimum height.",
66
"timer": "Display a progress bar that counts down until the snackbar closes. Pass a string to set a custom color, otherwise uses `info`.",
77
"timeout": "Time (in milliseconds) to wait until snackbar is automatically hidden. Use `-1` to keep open indefinitely (`0` in version < 2.3 ). It is recommended for this number to be between `4000` and `10000`. Changes to this property will reset the timeout.",
88
"vertical": "Stacks snackbar content on top of the actions (button)."

packages/vuetify/src/components/VSnackbar/VSnackbar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function useCountdown (milliseconds: () => number) {
7171
}
7272

7373
export const makeVSnackbarProps = propsFactory({
74+
/* @deprecated */
7475
multiLine: Boolean,
7576
text: String,
7677
timer: [Boolean, String],

0 commit comments

Comments
 (0)