{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "demo-components-base-dialog",
  "title": "Dialog Demo",
  "description": "Demo showing a dialog.",
  "registryDependencies": [
    "@animate-ui/components-base-dialog"
  ],
  "files": [
    {
      "path": "registry/demo/components/base/dialog/index.tsx",
      "content": "import * as React from 'react';\n\nimport { Button } from '@/components/ui/button';\nimport {\n  Dialog,\n  DialogTrigger,\n  DialogPopup,\n  DialogHeader,\n  DialogTitle,\n  DialogDescription,\n  DialogClose,\n  DialogFooter,\n  type DialogPopupProps,\n} from '@/components/animate-ui/components/base/dialog';\nimport { Label } from '@/components/ui/label';\nimport { Input } from '@/components/ui/input';\n\ninterface BaseDialogDemoProps {\n  from: DialogPopupProps['from'];\n  showCloseButton: boolean;\n}\n\nexport const BaseDialogDemo = ({\n  from,\n  showCloseButton,\n}: BaseDialogDemoProps) => {\n  return (\n    <Dialog>\n      <form>\n        <DialogTrigger\n          render={<Button variant=\"outline\">Open Dialog</Button>}\n        />\n\n        <DialogPopup\n          from={from}\n          showCloseButton={showCloseButton}\n          className=\"sm:max-w-[425px]\"\n        >\n          <DialogHeader>\n            <DialogTitle>Edit profile</DialogTitle>\n            <DialogDescription>\n              Make changes to your profile here. Click save when you&apos;re\n              done.\n            </DialogDescription>\n          </DialogHeader>\n          <div className=\"grid gap-4\">\n            <div className=\"grid gap-3\">\n              <Label htmlFor=\"name-1\">Name</Label>\n              <Input id=\"name-1\" name=\"name\" defaultValue=\"Pedro Duarte\" />\n            </div>\n            <div className=\"grid gap-3\">\n              <Label htmlFor=\"username-1\">Username</Label>\n              <Input id=\"username-1\" name=\"username\" defaultValue=\"@peduarte\" />\n            </div>\n          </div>\n          <DialogFooter>\n            <DialogClose render={<Button variant=\"outline\">Cancel</Button>} />\n            <Button type=\"submit\">Save changes</Button>\n          </DialogFooter>\n        </DialogPopup>\n      </form>\n    </Dialog>\n  );\n};\n",
      "type": "registry:ui",
      "target": "components/animate-ui/demo/components/base/dialog.tsx"
    }
  ],
  "meta": {
    "demoProps": {
      "DialogPopup": {
        "from": {
          "value": "top",
          "options": {
            "top": "top",
            "bottom": "bottom",
            "left": "left",
            "right": "right"
          }
        },
        "showCloseButton": {
          "value": true
        }
      }
    }
  },
  "type": "registry:ui"
}