ToastPRO
Stacked notifications for agent events, with an auto-dismiss timer.
Code
1 file · 128 lines of TypeScriptPRO
Toast is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- New toasts push the stack down with a layout spring rather than snapping.
- Dismissed toasts slide out to the right on an ease-out, so they start moving the moment you dismiss them.
- The timer bar uses linear timing because it represents real time, and it respects slow-mo.
Usage
Example
<ToastStack toasts={toasts} onDismiss={remove} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Toast title. |
| description | string | — | Secondary text. |
| status | "success" | "error" | "info" | "loading" | "info" | Icon and tone. |
| duration | number | 4000 | ms before auto-dismiss. 0 keeps it open. |
| onDismiss | () => void | — | Called on close or timeout. |