Toast
A status message for a completed action or a recoverable failure, over the page, in document flow, or inside the chat panel. The consumer owns the queue, mount and timer.
Toast
Toast reports a completed action or a recoverable failure. It floats over the page, or reports a card action's outcome inside the chat panel. A failure that stays on screen is an InteractionNotice, not a Toast. The consumer owns the queue, the mount and the auto-dismiss timer, because Toast holds no state. The variant decides both the colour and the announcement, and a11y overrides the announcement alone.
Interaction Phases
State space: none. This item renders no phase treatment of its own.
Politeness is derived locally by this item.
Storybook
Loading
Props
Prop
Type
Also takes the attributes of the element it renders.
Tokens
Derived from the component source at docs-generation time — these are the --augds-* variables it reads. Re-theme the colour slots by constructing a partner DesignSystemTheme and wrapping the consumer subtree in <ThemeProvider>, never by hard-coding values.
--augds-border-default--augds-foreground-primary--augds-foreground-tertiary--augds-interaction-focus-ring--augds-radius-primitive-16--augds-shadow-2--augds-spacing-16--augds-status-error-bg--augds-status-error-fg--augds-status-info-bg--augds-status-info-fg--augds-status-success-bg--augds-status-success-fg--augds-status-warning-bg--augds-status-warning-fg--augds-surface-current--augds-surface-surface-1
Source
src/components/ui/toast/toast.tsx