timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.66k stars 319 forks source link

Don't apply lib default styles (`go...`) when using custom JSX #230

Closed mkosir closed 1 year ago

mkosir commented 1 year ago

I want to style toast component with custom styles/components, where default ones (prefixed as go...) are being injected (background color etc.). I understand some of them are necessary for example animation, position etc.

image

AsadSaleh commented 1 year ago

Having the same problem here!

timolins commented 1 year ago

How are creating the custom toast? Have you tried using providing a custom render function? This way, it should apply the required styles for positioning.

I'll close this for now.