isDismissible

An alert banner can include an icon-only close button to dismiss it.

actionLabel

An alert banner ideally provides a way for a user to address an issue in-line with an action. It can have both an icon-only close button and a button with a contextual action to take. There should never be more than one button with a contextual action in an alert banner.

variant

An alert banner always has a semantic meaning and uses semantic colors. Only gray (neutral), blue (informative), and red (negative) are available as options.

text

Text is required for all alert banners. The message should be concise and, if applicable, describe the next step that a user can take.