Vivid API

Alert

Alerts display short-lived important information to the user, usually at the top or bottom of the screen.

Text

Use the text attribute to set the Alert’s main text.

Headline

Use the headline attribute to add a headline to the Alert.

Connotation

Use the connotation attribute to change the Alert’s icon and icon color.

Each connotation comes with a default icon (that you can override with the icon attribute).

Icon

Use the icon slot to add an icon from the icon library and override the connotation icon.

Placement

Use the placement attribute to set the location of the Alert.

Removable

Use the removable attribute to add a close button to the Alert.