Toast
Small notices that slide in at the corner and leave on their own (Sonner).
Small notices that slide in at the corner and leave on their own (Sonner).
It uses Button, which the command adds for you.
npx shadcn@latest add sonner
npm install lucide-react next-themes sonner
First time with shadcn/ui? Set it up once.
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Put <Toaster /> in your root layout once; then call toast() from anywhere.