Alert
Shows an important message about the page or the current task, inside the content.
01Anatomy
6 parts. Select a number or a name to see what each part does.
01 · Container
The box that separates the message from the content around it.
- Required
- Yes
02 · Status icon
Shows the severity at a glance: info, success, warning, error.
- Required
- Yes
- Recommended
- Always paired with words: the icon alone isn’t enough.
03 · Title
One line that sums up the message.
- Required
- No
04 · Message
What happened and what to do.
- Required
- Yes
05 · Action
A link or button to fix the problem or learn more.
- Required
- No
06 · Dismiss
Closes the alert.
- Required
- No
- When
- Avoid it on errors that still need fixing.
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Alertcomponent setauto layouthorizontalfillhugpadding 16
- Iconinstanceswapped by Severity
- Contentauto layoutverticalfill
- Titletextboolean
- Messagetext
- ActioninstanceLinkboolean
- DismissinstanceIcon Buttonboolean
| Property | Type | Values |
|---|---|---|
| Severity | Variant | InfoSuccessWarningError |
| Title | Boolean | truefalse |
| Action | Boolean | truefalse |
| Dismissible | Boolean | truefalse |
| Message | Text | “Add a payment method…” |
03Variants
04Responsive behaviour
Icon, text and actions on one row.
The actions move under the text; the dismiss button stays at the top right.
There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe