FX · Feedback

Stacked toast notifications that fan out on hover or focus.

  1. Backup complete

    128 files saved.

  2. New comment

    Ada replied to your PR.

  3. Deployment finished

    rad-ui.com is live.

bash
npx shadcn@latest add https://www.rad-ui.com/r/toast-stack.json
React
import ToastStack from "@/components/fx/toast-stack" <ToastStack toasts={toasts} onDismiss={(id) => remove(id)} />
  • A labelled region with a polite live list: new toasts are announced without stealing focus.
  • Every toast has a labelled dismiss button; focusing the stack fans all toasts out so each is reachable.
  • prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) shows toasts without sliding.
PropTypeDefaultDescription
toasts
{ id, title, description? }[]
—

Toasts, oldest first.

onDismiss
(id) => void
—

Called by each close button.

label
string
'Notifications'

Accessible name for the region.

visible
number
3

Toasts visible while collapsed.