{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toast",
  "type": "registry:ui",
  "title": "Toast",
  "description": "Sonner-powered toast notifications featuring ultra-smooth blur dissolving entry and exit transitions.",
  "dependencies": [
    "sonner",
    "clsx",
    "tailwind-merge"
  ],
  "registryDependencies": [
    "button",
    "sonner"
  ],
  "files": [
    {
      "path": "src/registry/ui/toast.tsx",
      "content": "\"use client\";\n\nimport { toast } from \"sonner\";\nimport { Button } from \"@/components/ui/button\";\nimport { Toaster } from \"@/components/ui/sonner\";\n\nexport function ToasterDemo() {\n  return (\n    <div className=\"flex flex-col items-center justify-center gap-4 w-full select-none p-2\">\n      <Toaster />\n      <div className=\"flex flex-wrap items-center justify-center gap-2.5\">\n        <Button\n          variant=\"outline\"\n          onClick={() =>\n            toast(\"Event has been created\", {\n              description: \"Sunday, December 03, 2023 at 9:00 AM\",\n              action: {\n                label: \"Undo\",\n                onClick: () => console.log(\"Undo\"),\n              },\n            })\n          }\n        >\n          Default Toast\n        </Button>\n\n        <Button\n          variant=\"outline\"\n          onClick={() =>\n            toast.success(\"Success!\", {\n              description: \"Your action was completed successfully\",\n            })\n          }\n        >\n          Success Toast\n        </Button>\n\n        <Button\n          variant=\"outline\"\n          onClick={() =>\n            toast.error(\"Error!\", {\n              description: \"Something went wrong. Please try again.\",\n            })\n          }\n        >\n          Error Toast\n        </Button>\n\n        <Button\n          variant=\"outline\"\n          onClick={() =>\n            toast.promise(new Promise((resolve) => setTimeout(resolve, 2000)), {\n              loading: \"Loading...\",\n              success: \"Promise resolved\",\n              error: \"Promise rejected\",\n            })\n          }\n        >\n          Promise Toast\n        </Button>\n      </div>\n    </div>\n  );\n}\n\nexport { Toaster, toast };\nexport default ToasterDemo;\n",
      "type": "registry:ui",
      "target": "@ui/toast.tsx"
    }
  ]
}
