nandorojo/burnt

Style toast individually in web?

KenzoM opened this issue · 2 comments

KenzoM commented

I know the library uses sonner under the hood for web but it seems I can't configure toast individually.

I'm able to import the library as indicated here and able to see the toast working as expected.

However, it seems this is the only accessible place where you'd add props for styling.

Is there a way to configure toasts across the application without using the global toast?

KenzoM commented

I don't see anywhere in the code base where I am able to utilize sonner's configuration as shown here: https://github.com/emilkowalski/sonner/tree/main#styling-for-individual-toast

Interesting, I'm not sure what the best way to do this would be. Maybe add a web option to burnt.toast?