{"repo":"beyonk/svelte-notifications","free":true,"listed":false,"github":"https://github.com/beyonk/svelte-notifications","clone":"git clone https://github.com/beyonk/svelte-notifications.git","description":"Svelte toast notifications component that can be used in any JS application","language":"Svelte","stars":316,"topics":["svelte","svelte-components","notifications","toast","toastr","vanillajs","beyonk"],"license":null,"category":"ui-components","readme_excerpt":"Svelte Notifications Svelte Notifications component Uses SvelteKit 🎉 v3 compatible Uses stores for completely hassle free operation Can persist across full page reloads! Demo A Demo of this component is available. Alternatively, check the project out from github and npm run dev . Usage Notification types You can call multiple types of notification: Persisting across apps Your notifications can persist across multiple apps / page reloads, as long as they use this library. This is useful for a scenario where you show a notification and then redirect the browser to a different application, or trigger a full reload of the page. This is completely automatic and uses session storage. To ensure that notifications don't persist across apps where they should not, set the sessionKey attribute to something unique to each app. Notification themes You can customise the themes: Custom types Timeouts You can set a default timeout: Custom timeout: You can set a timeout per message Show Progress: You can show or hide the progress bar per message Persist You can make a message persist and never timeout, having a close button that the user can click to remove it. Icons You can include custom svelte components to render icons (or anything). Credits Original code by Antony Jones Idea for persistent notifications by Henrique Borges Animation and performance improvements by Jonathan Greenemeier.","default_branch":null,"files":null,"tree":[],"storefront":"/r/beyonk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/beyonk/svelte-notifications/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}