Skip to main content

Snackbar

info

For more details about Vuetify’s usage of Snackbar component, click Snackbar page.
For more prop explanations, click Vuetify Snackbar API page.

Props

AttributeDescriptionTypeDefault
absoluteApplies position: absolute to the component.booleanfalse
appRespects boundaries of—and will not overlap with—other app components like AppBar, NavigationDrawer, and Footer.booleanfalse
bottomAligns the component towards the bottom.booleanfalse
centerPositions the snackbar in the center of the screen, (x and y axis).booleanfalse
colorApplies specified color to the control - it can be the name of material color (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)). You can find a list of built-in classes on the colors page.stringundefined
contentClassApply a custom class to the snackbar content.stringundefined
darkApplies the dark theme variant to the component.booleanfalse
elevationDesignates an elevation applied to the component between 0 and 24.number-stringundefined
multiLineGives the snackbar a larger minimum height.booleanfalse
outlinedRemoves elevation (box-shadow) and adds a thin border.booleanfalse
roundedDesignates the border-radius applied to the component.boolean-stringundefined
shapedApplies a large border radius on the top left and bottom right of the card.booleanfalse
textApplies the defined color to text and a low opacity background of the same.booleanfalse
tileRemoves the component’s border-radius.booleanfalse
timeoutTime (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.number-string5000
transitionAligns the content towards the top.boolean-stringsnack-transition
valueControls whether the component is visible or hidden.anyundefined
verticalstacks snackbar content on top of the actions (button).booleanfalse
leftAligns the component towards the left.booleanfalse
topAligns the content towards the top.booleanfalse
rightAligns the component towards the right.booleanfalse
visibleVisibility of Snackbar component.booleantrue

Events

AttributeDescription
clickTrigger when you click marker on the snackbar

Samples Component

image

image

rounded

outline

text

Samples Qjson

snackbars