Sync complete
All records are in sync.
ToastTransient notification stack with actions and dismissal.
All records are in sync.
Aliases
notification toast
Foundations
Toast when the feedback can fade after a short time and does not need to remain inline with nearby content.Toast for blocking decisions; use Dialog.Toast as the only place critical information exists if the user may miss it.toast region
stack Placement-aware stack of transient feedback surfaces.
single toast surface
item Contains the title, description, optional action, and dismiss control.
follow-up action
action Optional quick action inside a toast item.
| Name | Type | Default | Description |
|---|---|---|---|
items | Array<{ id: string; tone: string; title: string; description?: string; actionLabel?: string; actionHref?: string }> | — | Data-driven list of toast items to render in the stack. |
placement | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'bottom-right' | Chooses the stack placement on the viewport. |
durationMs | number | 5000 | Auto-dismiss duration for toast items. |
dismissible | boolean | true | Shows a dismiss control. |
onDismiss | (detail: { id: string }) => void | — | Receives the dismissed toast ID. |
onAction | (detail: { id: string }) => void | — | Receives the activated toast ID. |
theme | ThemeContract | — | Sets the theme used to resolve component styles. |
| Name | Payload | Description |
|---|---|---|
dismiss | { id: string } | Fires with the dismissed toast ID. |
action | { id: string } | Fires with the activated toast ID. |
| Name | Description |
|---|---|
default | Toast is data-driven and does not expose direct slots. |
Variants
brand: General product feedback.success: Positive confirmation.warning: Transient caution message.danger: High-risk or failure feedback.Sizes
default: Toast uses one structural size and varies by placement and message length.States
open: Toast is visible in the stack.dismissed: Toast leaves the stack after timeout or explicit dismissal.Semantics
Toast exposes a title and optional description for transient feedback.Keyboard
Screen readers
Caveats
Checklist
Implementation notes
A basic transient confirmation for a successful save.
<Toast items={[{ id: 'saved', tone: 'brand', title: 'Saved', description: 'Workspace updated.' }]} /> Provide an action to reverse or inspect the result.
<Toast items={[{ id: 'archive', tone: 'warning', title: 'Archived', description: 'Project moved to archive.', actionLabel: 'Undo' }]} onAction={(detail) => console.log(detail)} /> Set the duration to match the time needed to read the notification.
<Toast placement="top-right" durationMs={20000} dismissible={false} items={[{ id: 'sync', tone: 'success', title: 'Sync complete', description: 'All records are in sync.' }]} /> Calculated fixtures; browser evidence is not collected. Layout estimates use declared text behavior and maximum token values.
placement=bottom-right
placement=top-left