svelte-french-toast icon indicating copy to clipboard operation
svelte-french-toast copied to clipboard

Pass classes into toast

Open VitroidFPV opened this issue 1 year ago • 1 comments

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

VitroidFPV avatar Jun 21 '23 08:06 VitroidFPV

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
        });

TerminalFi avatar Jul 25 '23 13:07 TerminalFi