Toast
Accessible app-level notifications announced through a polite live region, with auto-dismiss, stacking and optional actions.
npx @slipstream-ui/cli@latest add toastImperative API (sonner-style)
Playground
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | required | Short heading announced with the toast |
| description | string | — | Optional supporting detail |
| action | { label, onClick } | — | Inline action; invoking dismisses the toast |
| duration | number | 5000 | Auto-dismiss delay in ms; 0 keeps it until dismissed |
Accessibility
- Toasts render inside role=status (implicit polite live region)
- Container is a labelled list for screen-reader navigation
- Actions and dismiss controls are regular keyboard-reachable buttons
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.