Skip to main content

Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Examples

Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the eight variants.

Result
Loading...
Live Editor

For links, use the <Alert.Link> component to provide matching colored links within any alert.

Result
Loading...
Live Editor

Additional content

Alerts can contain whatever content you like. Headers, paragraphs, dividers, go crazy.

Result
Loading...
Live Editor

Dismissing

Add the dismissible prop to add a functioning dismiss button to the Alert.

Result
Loading...
Live Editor

You can also control the visual state directly which is great if you want to build more complicated alerts.

Result
Loading...
Live Editor

API

Alert

AlertHeading