Skip to main content

In Page Banner

In page banners display an important, succinct message, and may provide actions for users to address. Banners should be displayed at the top of the screen,below a top app bar. Only one banner should be shown at a time.

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

Demo

zeta-web v1.1.1
Web Components

In page banners display an important, succinct message, and may provide actions for users to address. Banners should be displayed at the top of the screen, below a top app bar. Only one banner should be shown at a time.

This component represents a banner that can be displayed within a page. It can have a title, body content, and various status options.

Storybook

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

Slots

NameDescriptionType
defaultThe main content of the banner.text
actionThe action buttons.text

Attributes

NameDescriptionTypeDefault
titleTitle of the banner, displayed at the top.string""
statusStatus of the component."default" | "info" | "positive" | "warning" | "negative""default"
canCloseWhether the banner can be closed by the user.booleantrue
showIconWhether the icon should be displayed.booleantrue
iconCustom icon to replace default.Default icons are:- positive: check_circle- negative: error- warning: warning- info: info- default: infoZetaIconName | 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

CSS Properties

NameDescription
--banner-border-colorThe border color of the banner.
--banner-background-colorThe background color of the banner.
--banner-foreground-colorThe foreground color of the banner.
--banner-icon-colorThe icon color of the banner.