{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "drawer-non-modal",
  "type": "registry:block",
  "description": "Non-modal drawer",
  "files": [
    {
      "path": "registry/predict/components/drawer/drawer-non-modal.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  DrawerHeader,\n  DrawerTitle,\n  DrawerTrigger,\n} from \"@workspace/ui/components/drawer\"\n\nexport function DrawerNonModal() {\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] flex-col items-center justify-center gap-3 overflow-hidden rounded-[32px] border bg-muted/40 p-6 text-center\"\n    >\n      <p className=\"text-xs text-muted-foreground\">\n        The page stays usable while the drawer is open.\n      </p>\n      <Drawer modal={false}>\n        <DrawerTrigger render={<Button variant=\"secondary\" />}>\n          Show tip\n        </DrawerTrigger>\n        <DrawerContent container={container}>\n          <DrawerHeader>\n            <DrawerTitle>Tip</DrawerTitle>\n            <DrawerDescription>\n              Drink water before your draw. It makes the veins easier to find.\n            </DrawerDescription>\n          </DrawerHeader>\n          <div className=\"p-4\">\n            <DrawerClose render={<Button variant=\"outline\" className=\"w-full\" />}>\n              Got it\n            </DrawerClose>\n          </div>\n        </DrawerContent>\n      </Drawer>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}