DEV Community

Cover image for Meet ToastaX โ€” Your New Toast Notification BFF for React ๐Ÿ””
Mahmud Rahman
Mahmud Rahman

Posted on

Meet ToastaX โ€” Your New Toast Notification BFF for React ๐Ÿ””

ToastaX v3.0, a sleek, customizable, and accessible toast notification library for React apps, built in TypeScript and ready to roll โ€”
Why youโ€™ll dig it:

  • Looks your way โ€” Themes like light, dark, glass, gradient-blue, neonโ€ฆ size it up from xs to xl, pick shapes like pill or rounded, and tweak opacity anytime.([npm][1])
  • Smooth moves โ€” Enter and exit toasts via animations like fade, slide, bounce, zoom, or flip, with support for reduced-motion modes.([npm][1])
  • Progress your way โ€” Top, bottom, left, rightโ€”or go stealth and hide it entirely. Adjust thickness from thin to extra-thick.([npm][1])
  • Promise-based flows โ€” Built for async: loading โ†’ success โ†’ errorโ€”handled neatly with a promise API.([npm][1])
  • Friendly by design โ€” ARIA labels, screen-reader enhancements, high-contrast modes, and motion reduction all included.([npm][1])
  • Interactive magic โ€” Draggable toasts, swipe-to-dismiss with pause-on-hover or focus, and customizable action buttons.([npm][1])
  • Clutter-free zones โ€” Cluster similar toasts when they pile up to keep things tidy.([npm][1])
  • Mobile-first โ€” Dynamic layout and sizing so your toasts look just as good on phones.([npm][1])
  • TypeScript lovers rejoice โ€” Fully typed with detailed definitions baked in.([npm][1])
  • Plugin-ready โ€” Want sound, vibration feedback, or analytics? Plugins support that too.([npm][1])
  • Performance focused โ€” Lazy rendering, virtual scrolling, batch updatesโ€”speedy and efficient.([npm][1])

How to Get Started

npm install toastax
npm install dompurify  # peer dependency for HTML sanitisation
Enter fullscreen mode Exit fullscreen mode

Drop it into your React project and you're off to the races. No fluff, just polished notifications.([npm][1])


TL;DR

Whether you're building a sleek dashboard or a shiny web app, ToastaX packs theme flexibility, async-ready APIs, accessibility, performance, and interactivityโ€”all in one modern package. Please give it a spin and level up your user notifications.

toastax - npm
Docs


Follow for more!

Top comments (0)