Components · Feedback & Status

Toast

A brief message that confirms something happened, then goes away.

Automated a11y scan passing Element: showToast() + <div role="status">

Component Workbench

Switch between the live interactive preview, syntax-highlighted implementation code, copyable AI coding agent prompt, and designer anatomy blueprint.

Toast · Canonical Spec

When to use it

Do

  • Keep it to one short sentence.
  • Use it to confirm completed actions.

Don't

  • Put essential information only in a toast.
  • Use it for errors that need action. Use Alert or Dialog instead.

Accessibility & Keyboard Interaction

Requirements for using this component accessibly, following the W3C ARIA Authoring Practices Guide.

Interaction / KeyBehavior & Compliance Requirement
Polite Live RegionInjected into .as-toast-container without stealing keyboard focus.
Red Dot CloseIncludes 12px solid .as-toast__close red dot button with focus ring.

Tokens

Values update with the current theme.

RoleTokenCurrent value
Surface--as-semantic-color-surface-card
Corner Radius--as-radius-md
Shadow--as-elevation-shadow-overlay
Esc
↑↓ navigateEnter openEsc close