Docs
Sonner
Sonner
An opinionated toast component for React.
Preview
Installation
npx shadcn@latest add sonnerUsage
// app/layout.tsx
import { Toaster } from "@/components/ui/sonner"
<Toaster />
// anywhere in the app
import { toast } from "sonner"
toast("Event has been created")On This Page