emilkowalski / sonner

An opinionated toast component for React.
https://sonner.emilkowal.ski
MIT License
7.69k stars 237 forks source link

Rich Colors on individual toast basis #414

Closed nicksrandall closed 1 month ago

nicksrandall commented 1 month ago

Describe the feature / bug 📝:

I'd like to opt into the "richColors" styles on a per-toast basis. It would be great if I could pass that option to the toast function so that that specific toast is opted into rich colors styles. I'd be happy to make a PR if you're open to this change.

nicksrandall commented 1 month ago

I believe this is a non-breaking change as we still follow the richColors value set on the if not passed directly to the individual toast.

emilkowalski commented 1 month ago

Merged your PR!