Animated Toast Stack

Stacked toasts with status morphs, swipe dismissal, actions and layout-aware motion.

Preview

Open a real toast

Toasts render fixed on the screen. Change position to open a toast from that edge.

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/animated-toast-stack

API Reference

useAnimatedToastStack

initialToasts?
ToastInput[]
[]
defaultDuration?
number
4200
limit?
number

AnimatedToastStack

toasts
AnimatedToast[]
onDismiss?
((id: string) => void)
position?
"top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right"
bottom-right
placement?
"static" | "fixed" | "absolute"
fixed?
boolean
false
portal?
boolean
portalRoot?
Element | null
maxVisible?
number
4
className?
string
classNames?
ToastClassNames
icons?
Partial<Record<ToastStatus, ReactNode>>
renderToast?
((toast: AnimatedToast) => ReactNode)

Updated