svelte-toast
svelte-toast copied to clipboard
Simple elegant toast notifications
I installed and setup the package as instructed but when i call it i only get a couple letters on the corner with a very small blue line.
How would I send custom events from my custom notification component, and how do I receive it from my main component? Thanks in advance!
I have the following toast option. ``` const toastOptions = { duration: 4000, // duration of progress bar tween to the `next` value initial: 1, // initial progress bar value...
I had to reverse engineer this from the component example on https://zerodevx.github.io/svelte-toast/: https://github.com/zerodevx/svelte-toast/blob/9d234a7cde7a8fbecef07f63e13991724907b7e9/docs/App.svelte#L247-L262
Would be a nice to feature to be able to "Swipe" the toast message away (left or right) and also make the toast "stay" on mousedown or when holding down...
``` // Remove all toasts from "new" container toast.pop((i) => i.target !== 'new') ``` I believe this functionality is contradicting itself. Callback should delete toasts that meet the condition instead....
https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API Among other things I'm using toasts to display warnings when something didn't work. If you tab out of the browser (or the Electron app in my case) you might...
I've just installed and imported this component in svelte but I get this error: > Internal server error: Failed to resolve entry for package "@zerodevx/svelte-toast". The package may have incorrect...
Added the ability to add icons and/or images to the right of the toast message