Alert
Tells people about something that happened or needs attention.
| Name | Type | What it does |
|---|---|---|
alert | component | A glass banner. Give it role="alert" for urgent messages, role="status" otherwise |
alert-primary | colour | Tints it with the primary colour |
alert-secondary | colour | Tints it with the secondary colour |
alert-success | colour | Tints it with the success colour |
alert-warning | colour | Tints it with the warning colour |
alert-danger | colour | Tints it with the danger colour |
Alerts
Heads up — a new version is available.
Saved. Your changes are live.
Your trial ends in 3 days.
Payment failed. Update your card.
<div style="display: grid; gap: 0.75rem">
<div class="alert" role="status">Heads up — a new version is available.</div>
<div class="alert alert-success" role="status">Saved. Your changes are live.</div>
<div class="alert alert-warning" role="alert">Your trial ends in 3 days.</div>
<div class="alert alert-danger" role="alert">Payment failed. Update your card.</div>
</div>