Toast
Markdown for agentsAccessible app-level notifications announced through a polite live region, with auto-dismiss, stacking and optional actions.
npx slipstream-ui@latest add toastPlayground
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