Alert
Display a contextual message alongside the content it concerns.
alpina-ui/ui/alertProduction check
Proof review
Review required
Confirm the trim size before printing.
Usage notes
Choose a heading level that fits the surrounding page. Reserve a live announcement for information that appears after an action. The visible symbol and text also communicate the tone.
When to use
Keep an explanation visible when an interruption changes what someone can do on the page.
When to avoid
For a routine save with no follow-up, a brief status is sufficient. Repeated alerts interrupt reading.
Accessibility
Keep the heading in document order. Reserve live alert announcements for information that arrives after the page has loaded.
| Key | Action |
|---|---|
| — | Read in document order. The component has no keyboard command of its own. |
Content
State the event and a feasible next step in one or two short sentences. Avoid blame and internal error codes as the headline.
- Use
- Booking unavailable. Choose another date.
- Avoid
- ERROR 409!
Copy in four languages
- German
- Termin nicht verfügbar22 characters
- French
- Rendez-vous indisponible24 characters
- Italian
- Appuntamento non disponibile28 characters
- Romansh
- Termin betg disponibel22 characters
npx --no-install alpina add alert