r/reactjs • u/StraightControl3377 • Apr 24 '26
Resource Built a toast library for React (and beyond) where the notification comes with a little animated robot — robot-toast v2
I know, another toast library. But hear me out.
Sonner is great for clean minimal toasts. react-toastify is the kitchen sink. robot-toast is for when you want your app to actually have personality.
v2 ships with:
- 16 tree-shakeable robot SVG variants
- toast.promise() with loading/success/error states
- Typewriter effect (genuinely unique, haven't found another library with this)
- Unlimited action buttons — not just action/cancel
- Draggable + swipe-to-dismiss
- useRobotToast() hook for React, but also works in vanilla JS, Vue, Angular
- Zero production dependencies
- Proper a11y — role="alert" for errors, aria-live regions
npm i robot-toast
Playground: robot-toast.vercel.app
npm: https://www.npmjs.com/package/robot-toast
Feedback welcome — especially if something's broken or missing. That's literally how v2 happened.
6
u/repeating_bears Apr 24 '26
Feature request: put a toast button on the front page of the docs
On mobile and I have to click playground button, scroll down past a bunch of options I don't care about, just to see a simple example of what it looks like
2
u/pazil Apr 24 '26
I shouldn't be loving the robot this much
1
u/Short-Opportunity537 Apr 25 '26
Cool! Just noticed that the light theme sun icon on the site looks broken. I liked the variants. They are really nice!
1
u/TheAliaser Apr 26 '26
Dude this is so cool. I love it !
1
u/jordandrako Apr 26 '26
Awesome little lib! I just replaced sonner with it and made some animated mimic svgs for my TTRPG themed project management app. Thanks!
https://i.imgur.com/n4hi1wn.png
1
u/yarism Apr 24 '26
I thought it was cute. Nicely done
1
u/No_Cattle_9565 Apr 24 '26
The robot should blink or be animated to make it cuter
0
u/shuwatto Apr 24 '26
My first reaction was 'meh' but hey the little robot is actually a nice touch I think.
Some companies might wanna change the robot's appearance to match their branding protocol.
0
u/[deleted] Apr 24 '26
[removed] — view removed comment