
Default sonner toast using the shadcn Sonner component.
@shadcnblocks
example/sonner/sonner-standard-1.tsx
"use client";
import { toast } from "sonner";
import { Button } from "@/components/ui/button";
import { Toaster } from "@/components/ui/sonner";
export const title = "Default Toast";
const toasterId = "default-toast";
const Example = () => (
<>
<Button
onClick={() => toast("Event has been created", { toasterId })}
variant="outline"
>
Show Toast
</Button>
<Toaster id={toasterId} />
</>
);
export default Example;

































