Skip to content

Feedback

IAlert ​

An inline message about the thing next to it. Neutral chrome with a coloured icon — the icon carries the severity, so a page of alerts does not turn into a wall of colour.

Draft saved

Your changes are stored locally until you send the invoice.

Variants ​

Four severities, each with its own default icon. warning and danger announce assertively to a screen reader; info and success announce politely, so they do not cut across what the reader is doing.

Scheduled

This invoice sends on 1 April.

Payment received

€1,240.00 cleared this morning.

Description only ​

Skip title for a single line. The icon still sets the severity.

Dismissing ​

closable adds a close button. Bind v-model:open to control visibility; the close event fires alongside it when you need to persist the decision.

You can dismiss this one

Toggle it back with the button below.

Actions ​

The actions slot sits under the description, for the thing the alert is asking you to do.

Props ​

PropTypeDefaultDescription
variant'info' | 'success' | 'warning' | 'danger''info'Severity, and the default icon
titlestring—Bold first line
descriptionstring—Body text
iconicon | falsevariant's iconYour own icon, or false for none
closablebooleanfalseShows the close button
closeLabelstring'Close'Accessible name for that button
asstring'div'Element to render
unstyledboolean—Drop built-in classes
classstring—Merged with the built-in classes
ui{ root?, icon?, content?, title?, description?, actions?, close? }—Per-element class overrides

v-model:open controls visibility, and close is emitted when the button is pressed.

For a message about the page as a whole rather than the thing beside it, reach for IBanner; for something transient, useToast().