Alert

Status

Use the default for general information. Use data-variant when the message has a status. Use role="alert" only for errors that must be announced right away.

Order received

Order #1042 is awaiting payment confirmation.

Shipping rates updated

New carrier rates apply from today.

Payment captured

$79.00 captured. Ready to fulfil.

Low stock

3 variants are below their reorder point.

With actions

Put buttons in a <footer> below the body. Use small buttons.

Subscription ends in 3 days

Renew to keep fulfilment automations running.

Title only

For short messages that need no extra detail.

Changes saved

Without icon

Without an icon, the text takes the full width.

Scheduled maintenance

The Admin API is read-only on Sunday 02:00-04:00.

Attributes

Attribute / element Values Description
.alert Alert box. A two-column grid with the icon on the left and all other children in the right column.
data-variant ok, warning, info, danger (omit for neutral) Light fill and text colour for the status. The default has a surface fill and a 1px border.
> .icon Optional. The first icon. Without it, the text takes the full width.
> strong, > h2, h3, h4 Title, 14px bold.
> p, > section Body text.
> footer Button row, 8px below the body.
role status, alert, note status for general notices, alert for errors that must be announced at once, note for static text on the page.