kbrgl / svelte-french-toast

🍞🥂 Buttery smooth toast notifications for Svelte
https://svelte-french-toast.vercel.app/
MIT License
809 stars 28 forks source link

Pass classes into toast #37

Open VitroidFPV opened 1 year ago

VitroidFPV commented 1 year ago

I'm not sure if I missed it, but it'd be great to be able to pass in classes to the toast call function, for example to use Tailwind to style it. Otherwise this is still a great library. Thanks a lot

TerminalFi commented 1 year ago

Can be done using the below. However it then appends a custom class that overrides these classes anyway

        toast.success('Group created successfully!', {
          className: 'dark:bg-green-500',
          duration: 50000
        });