Skip to main content

SnackBar

Demo

zeta-web v0.9.0
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
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
shapeWhether the component is sharp, rounded or fully rounded.This will change the border radius and icon font.Possible values are: - sharp: No border radius, uses "zeta-icons-sharp"- rounded: Minimal border radius, uses "zeta-icons-round"- full: Full border radius, uses "zeta-icons-round"'sharp' | 'rounded' | 'full'"rounded"ContourableThree
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