Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Toast Stack

ProNew

Depth-stacked notification cards that fan out smoothly on hover or keyboard focus with animated push and dismiss.

Installation

pnpm dlx shadcn@latest add @viewport/toast-stack

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
items*ToastItem[]

Notification items, newest first.

—
onDismiss*(id: string) => void

Called when a toast is dismissed.

—
classNamestring—

Accessibility

  • Expands on keyboard focus as well as hover, and collapses when focus leaves.
  • Each toast has a labelled dismiss button naming the notification.
  • Stack transitions respect prefers-reduced-motion.