{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toast-demo", "registryDependencies": [ "https://reusables.vercel.app/r/notify" ], "files": [ { "path": "registry/example/toast-demo.tsx", "content": "\"use client\"\n\nimport { statusStyles, toast } from \"@/packages/notify/src\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\nexport default function ToastDemo() {\n return (\n
\n toast.info(\"This is an information message.\")}\n >\n Info Toast\n \n\n toast.success(\"Your action was successful.\")}\n >\n Success Toast\n \n\n toast.warning(\"Please be cautious.\")}\n >\n Warning Toast\n \n\n toast.error(\"An error has occurred.\")}\n >\n Error Toast\n \n\n toast.default(\"This is a default notification.\")}\n >\n Default Toast\n \n toast.loading(\"Processing your request...\")}\n >\n Loading Toast 1\n \n \n toast.loading(\"Processing your request...\", {\n loaderVariant: \"loader-2\",\n })\n }\n >\n Loading Toast 2\n \n
\n )\n}\n", "type": "registry:example", "target": "components/toast-demo.tsx" } ], "type": "registry:example" }