About
A toast notification trigger button paired with a styled Sonner toaster for showing brief confirmation messages like "Draft synced".
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sonner Toast to your project and fits it to your theme.
Code
How Sonner Toast is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import PrimitiveSonner from "@/components/ui/primitive-sonner";
export default function PrimitiveSonnerDemo() {
return (
<div className="flex min-h-[240px] w-full items-center justify-center bg-background">
<PrimitiveSonner />
</div>
);
}








