Sonner 10 - Promise Toast
- from @shadcn-dashboard
Toast that moves from loading to success or error, with a switch to simulate a failed request and a Retry action.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @shadcn-dashboard/sonner-10Live preview
No live preview has been built for this component yet.
Registry dependencies4
- button
- label
- switch
- toast
