Skip to main content

SnackBar

Demo

zeta-web v0.6.6
Web Components

Snackbars provide brief messages about app processes at the bottom of the screen. Contextual snackbars provide brief messages in relation to an action that has been taken by the user.

Storybook

https://design.zebra.com/web/storybook/index.html?path=/docs/components-snackbar--docs

Slots

NameDescriptionType
defaultThe text of the snackbar.text
iconThe icon of the snackbar.text

Attributes

NameDescriptionTypeDefault
roundThe border radius of the snackbar. Used in place of rounded prop."full"boolean | "full""full"
statusStatus of the component."default" | "positive" | "info" | "warning" | "negative" | "view""default"
hasCloseActionWhether the snackbar has a close action.booleanfalse
actionLabelLabel of the action.string | undefinedundefined
actionClickFunction to call when the action is clicked.Function() => {}

Inherited Attributes

NameDescriptionTypeDefaultInherited From
disabledBoolean for if component is disabled.This will apply disabled styles.booleanfalseInteractive
tabIndexThe tab index of the component, used to determine the order in which elements receive focus when the user navigates through the document by pressing the Tab key.number0Interactive

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=23105-92186