Overlays
Sonner
Stacking toasts with swipe to dismiss.
npx shadcn-svelte@latest add http://localhost:5173/r/sonner.json One <Toaster /> lives in the app layout and follows the site theme (top-right toggle), so both panels below fire into the same stack. Hover the stack to expand it; swipe or flick a toast to dismiss it.
Types
Icons carry the meaning in color; the surface stays the same material.
light
dark
Actions and promises
An action button, a cancel button, and a toast that follows a promise from loading to done.
light
dark