Component packs › Herald › Toast Stack

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.

Toast Stack props

PropTypeDefaultDescription
toastsToastItem[]Toasts shown at mount (newest last).
maxnumber3How many stay visible. Default 3.
onDismiss(toast: ToastItem) => void

Methods on the ref

Use it in React

import ToastStack from './ToastStack';

<ToastStack />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Herald

Good for: Notifications and toasts.