Quick start
Get a toast on screen in 30 seconds.
1. Install
npm install sonner-wc # or: bun add / pnpm add / yarn add 2. Place a toaster
Add one <sonner-toaster> near the end of <body>:
<sonner-toaster position="bottom-right" theme="system"></sonner-toaster> 3. Import and call toast()
import { toast } from 'sonner-wc';
toast('Hello, world!'); That’s it. Calling toast() anywhere on the page after that will show a
toast. See the API reference for variants, options, and
events.