Component packs › Herald › Toast Stack
A new toast drops onto the pile and lands with a bounce; flick one sideways and it is thrown off, turning as it falls, while the rest slide up.
Toast Stack is a toast from Herald, a component pack with 6 notification components: Notifications with weight: toasts that land and get thrown, and a bell that really rings. Price: $2 for the whole pack.
Built with: weighted drop, throw with your speed, fan on hover.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
toasts | ToastItem[] | Toasts shown at mount (newest last). | |
max | number | 3 | How many stay visible. Default 3. |
onDismiss | (toast: ToastItem) => void |
push(toast: ToastItem): voiddismiss(): void: Throws the newest toast away.destroy(): voidimport ToastStack from './ToastStack';
<ToastStack />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.