Toast
Announce the outcome of an action.
alpina-ui/interactive/toastProject preferences
Record language
Current setting · it-CH
Usage notes
A focused notification can be dismissed with Escape. Its dismiss button and Escape return focus to the control used to reach this notification.
When to use
Acknowledge a completed action without moving focus away from ongoing work.
When to avoid
Keep validation errors, payment instructions and information needed later in the page itself.
Accessibility
Use a concise announcement. Give people time and keyboard access to any offered action, and keep persistent outcomes discoverable elsewhere.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Focus the dismiss button when supplied. Focus pauses the timer. |
| Enter / Space | Dismiss using the button. |
| Escape | Dismiss while focus is in the notification. |
Content
Write one short sentence in the past tense where natural. Name the saved or changed object and omit congratulatory filler.
- Use
- Address saved.
- Avoid
- Success!
Copy in four languages
- German
- Adresse gespeichert.20 characters
- French
- Adresse enregistrée.20 characters
- Italian
- Indirizzo salvato.18 characters
- Romansh
- Adressa memorisada.19 characters
npx --no-install alpina add toast