{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "drawer-controlled-example",
  "title": "Drawer Controlled",
  "description": "drawer-controlled-example",
  "registryDependencies": [
    "https://intentui.com/r/button",
    "https://intentui.com/r/drawer",
    "https://intentui.com/r/field",
    "https://intentui.com/r/input",
    "https://intentui.com/r/text-field"
  ],
  "files": [
    {
      "path": "src/components/examples/overlays/drawer/drawer-controlled-example.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\n\nimport { Button } from '@/components/ui/button'\nimport {\n  Drawer,\n  DrawerBody,\n  DrawerClose,\n  DrawerContent,\n  DrawerDescription,\n  DrawerFooter,\n  DrawerHeader,\n  DrawerTitle,\n} from '@/components/ui/drawer'\nimport { Label } from '@/components/ui/field'\nimport { Input } from '@/components/ui/input'\nimport { TextField } from '@/components/ui/text-field'\n\nexport default function DrawerControlledDemo() {\n  const [isOpen, setIsOpen] = useState(false)\n  return (\n    <>\n      <Button onPress={() => setIsOpen(!isOpen)} intent=\"outline\">\n        Login\n      </Button>\n      <Drawer isOpen={isOpen} onOpenChange={setIsOpen}>\n        <DrawerContent>\n          <DrawerHeader>\n            <DrawerTitle>Login</DrawerTitle>\n            <DrawerDescription>\n              Please enter your credentials to access your account.\n            </DrawerDescription>\n          </DrawerHeader>\n          <DrawerBody className=\"flex flex-col gap-4\">\n            <TextField isRequired>\n              <Label>Email</Label>\n              <Input type=\"email\" placeholder=\"Enter your email\" />\n            </TextField>\n            <TextField isRequired>\n              <Label>Password</Label>\n              <Input type=\"password\" placeholder=\"Enter your password\" />\n            </TextField>\n          </DrawerBody>\n          <DrawerFooter>\n            <DrawerClose>Close</DrawerClose>\n            <Button onPress={() => setIsOpen(false)}>Login</Button>\n          </DrawerFooter>\n        </DrawerContent>\n      </Drawer>\n    </>\n  )\n}\n",
      "type": "registry:page",
      "target": "app/drawer-controlled-example/page.tsx"
    }
  ],
  "type": "registry:page"
}