Skip to main content

System Banner

A banner displays an important, succinct message, and provides action for users to address. It draws the attention to the message by displaying it at the top in various colors.

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

Demo

zeta-web v0.11.0
Web Components

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-system-banner--docs

Slots

NameDescriptionType
defaultText displayed on label.text
leadingIconIcon at leading side of text.zeta-icon
trailingIconIcon at trailing end of component.zeta-icon

Attributes

NameDescriptionTypeDefault
statusType of banner."default" | "positive" | "warning" | "negative""default"
alignAlignment of banner."start" | "center""start"
textText displayed on the banner.Can also be slotted with default (unnamed) slot.If both are present, text prop will be displayed and slot will notstring | undefinedundefined

Inherited Attributes

NameDescriptionTypeDefaultInherited From
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueContourable