Menu

Add an animated toast stack to a Next.js app in 5 minutes (shadcn registry or npm)
πŸ“°

Add an animated toast stack to a Next.js app in 5 minutes (shadcn registry or npm)

DEV Community: reactΒ·Teodor AvadaniΒ·19 days ago
#ct8M67OR
#devtoreact#devto#dev#toast#stack
Reading 0:00
15s threshold

Free kit: animated pieces + 8 AI prompts β†’ https://qodesign.dev/free?utm_source=devto&utm_medium=tutorial&utm_campaign=tutorial7&utm_content=top

Most apps built with Cursor, v0 or Lovable end up with toasts sooner or later: "Saved", "Copied", "Something went wrong". The default is usually a flat box in a corner that appears and disappears, and if three fire at once they pile on top of each other.

This post adds a toast stack that behaves more like a deck of cards. New toasts slide in at the front and older ones tuck behind. Hover the deck (or tab into it) and it fans out into a list while the page behind it blurs. You can swipe a toast sideways to throw it away. And a promise toast shows a spinner that turns into a check with a small burst when the work finishes.

It's free and MIT, from my repo qodesign-free . Live demo here , and its page on qodesign.dev .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.