Simple and customizable toast notifications for Svelte
Intended as a replacement for alert()
, though in a non-blocking fashion.
- Open quick start in Svelte REPL
- View a demo
- View the docs
- View Theme Ideas π¨
- Vist package on npm
- Visit project repo on GitHub.
npm i -D as-toast
<!-- App.svelte -->
<script>
import { Toasts, addToast } from "as-toast";
</script>
<Toasts />
<button on:click={() => {addToast("Hello World")}}>
add toast
</button>