Size

Snacks are used to display an interactive message to the user. They feature a close button that can trigger an action when clicked. Snacks can have different sizes. Use the size prop to change the size of the snack.

React
Angular
Vue
Show code

Color:default

Snacks default to the light version. Use the color prop with the default value to display a light snack.

React
Angular
Vue
Html
Python
Show code

Color:muted

Snacks have a muted version. Use the color prop with the muted value to display a muted snack.

React
Angular
Vue
Html
Python
Show code

Icon:default

Snacks can have an icon displayed on the left. Use the icon prop to display an icon.

React
Angular
Vue
Show code

Icon:muted

Snacks can have an icon displayed on the left. Use the icon prop to display an icon.

React
Angular
Vue
Show code

Image:default

Snacks can have an icon displayed on the left. Use the image prop to display an image.

Mike
Maya
John
Show code

Image:muted

Snacks can have an icon displayed on the left. Use the image prop to display an image.

Mike
Maya
John
Show code
size
The size of the snack.

@default

'md'

Show example
color
The color of snack.

@default

'muted'

Show example
label
The text to display in the snackbar.
Show example
icon
An optional icon to display in the snackbar.
Show example
image
An optional image to display in the snackbar.
Show example
@delete
Show example
#icon
Show example
#default
Show example