{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toast-close-button-demo", "registryDependencies": [ "https://reusables.vercel.app/r/notify" ], "files": [ { "path": "registry/example/toast-close-button-demo.tsx", "content": "\"use client\"\n\nimport { toast } from \"@/packages/notify/src\"\n\nimport { Button } from \"@/components/ui/button\"\n\nexport default function ToastCloseButtonDemo() {\n return (\n
\n \n toast.success(\"Closable toast\", {\n closable: true,\n })\n }\n >\n With Close Button\n \n\n \n toast.info(\"Non-closable toast\", {\n closable: false,\n })\n }\n >\n Without Close Button\n \n
\n )\n}\n", "type": "registry:example", "target": "components/toast-close-button-demo.tsx" } ], "type": "registry:example" }