# Toast

> A token-driven toast notification system that renders a staggered set of stacked, auto-dismissing toasts in a fixed corner region across success, error, info, and warning variants — each with a semantic icon chip, inline action, and an auto-dismiss progress indicator that pauses on hover — plus.

- Category: Toast
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Ember Studio
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Tags: notification, snackbar
- Page: https://builder.atheros.ai/components/toast
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_toast/preview-42fd4b6d196b.webp

## Features

- The full set of four toasts renders directly on page load with a soft 85ms JS stagger
- Four semantic variants — success, error, info, and warning — each with its own Tabler icon chip and AA-readable accent ink derived from the design-system palette
- Inline action button per toast (View / Retry / Details / Usage) in the variant accent ink
- A 3px auto-dismiss progress bar along the bottom edge, synced to the dismiss timer
- Hovering or focusing a toast pauses both the dismiss timer and the progress bar; leaving resumes from the remaining time
- Toasts slide in from the right edge with a subtle scale using `transform`, and stack vertically in a corner region
- A fixed bottom-center trigger row re-fires any variant on demand
- Each toast auto-dismisses after a timeout, with the timer cleared on manual close
- When the stack empties (auto-dismiss or manual close), the set respawns after a 700ms pause so the page never goes blank
- Stack is capped at a maximum visible count; the oldest active toast is removed when the cap is exceeded
- Manual close button on every toast with a descriptive `aria-label`
- A polite `aria-live` region announces each new notification to assistive technology
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Live announcements** — `aria-live="polite"` region announces each new toast
- **Toast role** — `role="status"` on each toast and the live region
- **Region landmark** — `role="region"` with `aria-label="Notifications"`
- **Theme toggle** — `role="switch"` with `aria-checked` synced by JS
- **Keyboard activation** — Close buttons are native buttons; theme toggle responds to Enter and Space
- **Focus indicators** — `:focus-visible` with `--ring` outline on all interactive elements
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `Enter` — Activate the focused close button or theme toggle
- `Space` — Activate the focused close button or theme toggle
- `Tab` — Move focus between the theme toggle and the close buttons

## Common questions

**Which frameworks is Toast available in?**

Toast ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Toast free?**

Toast is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Toast support dark mode?**

Yes. Toast ships light and dark themes, both drawn from the Ember Studio design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Toast live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/toast

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
