Components · Feedback · Toast
Back to Toast typesToast
Use for a temporary, floating confirmation of an action or status change, typically surfaced in a fixed screen corner (e.g. bottom-right) rather than embedded inline like Alert - one Toast component, controlled by properties, not separate cards glued together.
Properties
Corner radius, title, description, icon and action label are properties of the same component, not separate cards - change them below to check this toast's style and scenarios in the Live Preview. Dismissible, With action, With progress and Loading aren't separate properties here since they're not mutually exclusive states - pick any row by name from the Live Preview's own State selector to see that combination.
Live Preview
All 4 types compared side by side, each across 6 representative scenarios - Default, Dismissible, With action, With progress, Dismissible + Action + Progress (proving they combine), and Loading. One full matrix is rendered per selected Corner radius, using the chosen title, description, icon and action-label settings.
When to use
A temporary, floating confirmation of an action or a status change that doesn't require the user to stay on the page to see it resolve.
Component Guide
Overview
Toast is a temporary, floating confirmation of an action or status change, typically surfaced in a fixed screen corner rather than embedded inline like Alert - it appears, communicates its message, and disappears on its own without requiring the user to stay put.
When to Use
- A brief confirmation after an action - upload complete, copy-to-clipboard confirmation.
- An undo prompt - a short window to reverse the action just taken.
- A background job completing or a connection status change - events the user doesn't need to actively wait for.
When Not to Use
- A message that needs to stay visible until manually dismissed or resolved - use Alert, which is embedded and persistent, not self-dismissing.
- Anything requiring a decision before the user can continue - use Modal or Pop Confirm - a self-dismissing Toast is the wrong place for a choice with consequences.
- Detailed or long-form content - use Notification, which is built for a longer title/description pairing.
Best Practices
- Keep the message short enough to read in the few seconds before it disappears.
- Stack multiple toasts rather than replacing one before the user has had a chance to read it.
- Give an undo action a genuinely sufficient window before the toast dismisses, if undo is offered at all.
Do and Don't
Do
Draft saved
Short enough to read in the couple of seconds it is on screen, confirming something the user just did.
Don't
Delete this workspace?
This removes all 240 files permanently.
A decision inside a toast can vanish before it is answered. Anything with consequences belongs in a Modal or Pop Confirm.
Accessibility
- Announced via an aria-live region so screen-reader users are told about it without needing to be focused on it.
- Long enough on-screen duration (or a pause-on-hover/focus behavior) so it doesn't disappear before it can be read or acted on.
- Any inline action (like Undo) is a real, independently focusable control.
Related Components
Alert, Notification, Result.
{
"component": "Toast",
"category": "Feedback",
"summary": "Toast is a temporary, floating confirmation of an action or status change, typically surfaced in a fixed screen corner rather than embedded inline like Alert - it appears, communicates its message, and disappears on its own without requiring the user to stay put.",
"whenToUse": [
"A brief confirmation after an action - upload complete, copy-to-clipboard confirmation.",
"An undo prompt - a short window to reverse the action just taken.",
"A background job completing or a connection status change - events the user doesn't need to actively wait for."
],
"whenNotToUse": [
"A message that needs to stay visible until manually dismissed or resolved - use Alert, which is embedded and persistent, not self-dismissing.",
"Anything requiring a decision before the user can continue - use Modal or Pop Confirm - a self-dismissing Toast is the wrong place for a choice with consequences.",
"Detailed or long-form content - use Notification, which is built for a longer title/description pairing."
],
"bestPractices": [
"Keep the message short enough to read in the few seconds before it disappears.",
"Stack multiple toasts rather than replacing one before the user has had a chance to read it.",
"Give an undo action a genuinely sufficient window before the toast dismisses, if undo is offered at all."
],
"doAndDont": {
"do": "Short enough to read in the couple of seconds it is on screen, confirming something the user just did.",
"dont": "A decision inside a toast can vanish before it is answered. Anything with consequences belongs in a Modal or Pop Confirm."
},
"accessibility": [
"Announced via an aria-live region so screen-reader users are told about it without needing to be focused on it.",
"Long enough on-screen duration (or a pause-on-hover/focus behavior) so it doesn't disappear before it can be read or acted on.",
"Any inline action (like Undo) is a real, independently focusable control."
],
"relatedComponents": [
"Alert",
"Notification",
"Result"
]
}