An Alert is a banner used to notify a user about a change in status or communicate other information. It can be generated with or without a user triggering an action first.

Sample component

Alert component sample

Demos

View a live version of this component and see how it can be customized.

View the <rh-alert> demo in a new tab

Best practices

Inline as Toast

Do not use an Inline alert to communicate messages about important events, updates, or confirmations.

Alert component best practice 1

Toast as Inline

Do not use a Toast alert to present simple information or inline messages.

Alert component best practice 2

Different variants

Do not use both variants when stacking.

Alert component best practice 3

Feedback

To give feedback about anything on this page, contact us.

Foundations

To learn how to use our other components in your designs, visit the Elements section.