Skip to content

Toast

Announce the outcome of an action.

alpina-ui/interactive/toast

Interactive preview

Project 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.

Keys
KeyAction
Tab / Shift+TabFocus the dismiss button when supplied. Focus pauses the timer.
Enter / SpaceDismiss using the button.
EscapeDismiss 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
Add to your project
npx --no-install alpina add toast