Guide
Toast notification UX: when to use one and for how long
Use a toast for short, low-stakes feedback about something the user just did, show it for about 5 seconds, and keep errors and anything with a button on screen until the user deals with it. If the message needs a decision or relates to one field, a toast is the wrong pattern.
When is a toast the right choice?
A toast is a brief message that appears away from where the user is working and goes away again. It suits feedback the user can safely miss, because the result is already visible or easy to check.
| Situation | Use |
|---|---|
| “Saved”, “Copied”, “Archived” after a click | Toast |
| A background job finished or a file uploaded | Toast |
| A form field is invalid | Inline message next to the field |
| The user must choose before continuing, or the action cannot be undone | Dialog |
| A state that lasts, like offline mode or a billing problem | Banner |
| Something the user may want to read later | Notification centre or inbox |
A good test: if the user looked away and missed the toast, would anything go wrong? If yes, the message belongs somewhere that stays.
How many seconds should a toast stay visible?
Around 5 seconds is enough for a short confirmation. Longer text needs longer, and some toasts should not time out at all:
- Confirmations (success, info, warning): about 5 seconds. This is Boing’s default.
- Errors: stay until dismissed. The user needs time to read what went wrong and decide what to do.
- Toasts with a button, such as Undo: stay until used or dismissed, so slower readers and keyboard users can reach the button.
- Loading: stay until the work finishes, then become the result.
Pause the timer while the pointer is over the toast or focus is inside it. Boing does both, and lets you override any of the defaults with duration. See how long a toast stays.
Show one toast at a time
Several toasts on screen compete for attention and cover more of the page. Related messages, such as saving and then saved, read better as one toast that changes. Boing works this way by default: a new message morphs the visible toast, and a repeat of the same message shows a counter instead of a copy.
When an error should stay put while other feedback continues, use held modes to keep sticky toasts on screen or queue new ones behind them.
Writing toast copy
- Lead with the outcome in a few words: “Invoice sent”, not “Your invoice has been sent successfully”.
- Name the thing when it helps: “Moved to Archive” tells the user where it went.
- For errors, say what failed and what to do next, in the description if it does not fit the title.
- Label buttons with a verb that says what happens: Undo, Retry, View.
- Skip “Success!” and “Error!” as titles. The icon and colour already say that.
- Do not put the only copy of important information in a toast. Make sure it is also available somewhere that stays.
Where should toasts appear?
Pick one position and keep it across the app. Top centre is easy to notice; a bottom corner is less likely to cover headers and navigation. Avoid spots where the toast would hide the control the user just used. Boing defaults to top centre and takes any of six positions through the position prop.
Frequently asked questions
How long should a toast notification last?
About 5 seconds for a short confirmation. Errors, toasts with buttons and loading toasts should stay until the user or the app deals with them.
Should error messages use toasts?
For errors not tied to one field, a toast that stays until dismissed works. For form validation, show the message next to the field instead.
How many toasts should be visible at once?
Ideally one. Updating a single toast reads better than a growing stack, and it keeps more of the page uncovered.
Should toasts make a sound?
Usually not by default. Sound can help in apps people watch from a distance, so Boing offers an optional chime that stays off until you turn it on.
Related guides
- Accessible toast notificationsToasts screen readers and keyboards can use.
- Toast vs snackbarTwo names, one pattern.
- Undo toastAct first, offer undo.
- Loading toastOne toast from loading to done.