
Toaster
Toasts
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/promise-toastOne toast for one async job: a spinner and progress bar while it runs, then it settles in place. The spinner pops into a drawn check or cross with a ripple, the title cross-fades, the bar folds away and follow-up actions slide in. Errors shake once. Controlled, so it fits any promise, mutation or deploy.
Other props pass through to the root element.
status*
PromiseToastStatus
title*
React.ReactNode
description
React.ReactNode
progress
number
0–1 while loading. Leave it out for an indeterminate bar.
meta
React.ReactNode
Small text on the right, such as elapsed time ("12s") or a step count ("2 of 3").
actions
PromiseToastAction[]
Shown once the promise settles, e.g. "Visit" on success or "Retry" on error.
onDismiss
() => void
| Prop | Type | Default | Description |
|---|---|---|---|
| status* | PromiseToastStatus | – | |
| title* | React.ReactNode | – | |
| description | React.ReactNode | – | |
| progress | number | – | 0–1 while loading. Leave it out for an indeterminate bar. |
| meta | React.ReactNode | – | Small text on the right, such as elapsed time ("12s") or a step count ("2 of 3"). |
| actions | PromiseToastAction[] | – | Shown once the promise settles, e.g. "Visit" on success or "Retry" on error. |
| onDismiss | () => void | – |