{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toast-positions-demo", "registryDependencies": [ "https://reusables.vercel.app/r/notify" ], "files": [ { "path": "registry/example/toast-positions-demo.tsx", "content": "\"use client\"\n\nimport { toast } from \"@/packages/notify/src\"\n\nimport { Button } from \"@/components/ui/button\"\n\nexport default function ToastPositionsDemo() {\n const positions = [\n \"top-left\",\n \"top-center\",\n \"top-right\",\n \"bottom-left\",\n \"bottom-center\",\n \"bottom-right\",\n ] as const\n\n return (\n
\n {positions.map((position) => (\n \n toast.push({\n title: `Toast - ${position}`,\n position,\n status: \"success\",\n })\n }\n >\n {position}\n \n ))}\n
\n )\n}\n", "type": "registry:example", "target": "components/toast-positions-demo.tsx" } ], "type": "registry:example" }