Skip to main content

Variants

Five variants: primary, success, info, warning and danger. Primary, success and info use role="status", which is announced politely. Warning and danger use role="alert", which is announced at once. Icons are decorative and hidden from assistive tech; icon replaces the icon of the variant.

You have 3 new notifications.

Your changes were saved.

A new version is available.

Title and description

Add a short title when the message needs more than one line.

New feature

Saved searches are now available in the toolbar.

Changes saved

Your profile was updated.

Scheduled maintenance

The help center will be read-only from 23:00 to 23:30.

Custom icon

The icon prop replaces the icon of the variant.

With actions

The slot replaces the icon, the title, and the message, for content with actions. The frame, the colour, the role, and the close button stay.

New feature

Saved searches are now available in the toolbar.

Changes saved

Your profile was updated.

Scheduled maintenance

The help center will be read-only from 23:00 to 23:30.

Dismissible

dismissible adds a close button that removes the alert (data-destroy).

You have 3 new notifications.

Your changes were saved.

A new version is available.