Project
Roulette

Toast Notifications

Stacking toasts that appear on demand and dismiss themselves.

StarterWeb appUI component2–4hAI-buildable 5/5no setup

A toast system where multiple notifications stack, each removing itself on its own timer. Building it as a portal-based provider with a hook is what makes it genuinely reusable.

UI
Logic
Useful

Hosting · Free forever

Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.

Deploy it and share a link.

Core features · 5

  • A button spawns a toast with a random message
  • Multiple toasts stack rather than replacing each other
  • Each toast removes itself after a timeout
  • Toasts animate in and out
  • Toasts can be dismissed manually before timeout

The interesting part

  • Cleaning up per-toast timers so dismissed toasts don't fire later

Once it works

  • Add success/error/warning variants
  • Expose it as a useToast() hook via context

Suggested stack

reacttypescripttailwindframer-motion

Track it