Vivid API

Banner

Banner displays a prominent message, usually on system level, and provides actions for users to address or dismiss.

Text

The text attribute sets the banner’s text.

Connotation

The connotation attribute controls the purpose of the banner, expressed in its colors and icon.

The Banner icon, if not specifically set, defaults to a connotation-associated icon.

Icon

Use the icon slot to add an icon from the icon library.

Removable

The removable attribute adds a remove button. On click, it will remove the banner from the DOM.