{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "drawer-demo",
  "type": "registry:block",
  "description": "Drawer",
  "files": [
    {
      "path": "registry/predict/components/drawer/drawer-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  Drawer,\n  DrawerClose,\n  DrawerContent,\n  DrawerDescription,\n  DrawerFooter,\n  DrawerHeader,\n  DrawerTitle,\n  DrawerTrigger,\n} from \"@workspace/ui/components/drawer\"\n\nexport function DrawerDemo() {\n  const [container, setContainer] = React.useState<HTMLDivElement | null>(null)\n\n  return (\n    <div\n      ref={setContainer}\n      className=\"relative flex h-[420px] w-full max-w-[320px] items-center justify-center overflow-hidden rounded-[32px] border bg-muted/40\"\n    >\n      <Drawer showSwipeHandle>\n        <DrawerTrigger render={<Button />}>Book a test</DrawerTrigger>\n        <DrawerContent container={container}>\n          <DrawerHeader>\n            <DrawerTitle>Book your next panel</DrawerTitle>\n            <DrawerDescription>\n              A nurse visits your home. Fast for 10 hours before the draw.\n            </DrawerDescription>\n          </DrawerHeader>\n          <div className=\"p-4 text-muted-foreground\">Thursday, 8:30 AM</div>\n          <DrawerFooter>\n            <Button>Confirm</Button>\n            <DrawerClose render={<Button variant=\"outline\" />}>Cancel</DrawerClose>\n          </DrawerFooter>\n        </DrawerContent>\n      </Drawer>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}