To run the demo website simply clone the repository, run pnpm i
and then start the server with pnpm dev
No npm package required, simply:
src/lib/ToastDrawer.svelte
file to your proyect.ToastDrawer
component in your layout and customize its position.createToast
to create a toast from anywhere in your app.This way you don't need another dependency bloating your proyect and you can customize the component however you want.