Simple and customizable toast notifications for Svelte
Intended as a replacement for alert()
, though in a non-blocking fashion.
- ✨ Guide: Create a toast notification package with SvelteKit
- Quick start in Svelte REPL
- Demo
- Docs
- Theme Ideas 🎨
- npm
- 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>