{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "drawer-snap-points",
  "type": "registry:block",
  "description": "Drawer with snap points",
  "files": [
    {
      "path": "registry/predict/components/drawer/drawer-snap-points.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport {\n  Drawer,\n  DrawerContent,\n  DrawerDescription,\n  DrawerHeader,\n  DrawerTitle,\n  DrawerTrigger,\n} from \"@workspace/ui/components/drawer\"\n\nconst markers = [\n  [\"ApoB\", \"78 mg/dL\"],\n  [\"LDL-C\", \"142 mg/dL\"],\n  [\"HbA1c\", \"5.9 %\"],\n  [\"hs-CRP\", \"0.8 mg/L\"],\n  [\"Vitamin D\", \"22 ng/mL\"],\n  [\"Ferritin\", \"96 ng/mL\"],\n  [\"TSH\", \"1.9 mIU/L\"],\n  [\"Free T4\", \"1.2 ng/dL\"],\n]\n\nexport function DrawerSnapPoints() {\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 snapPoints={[0.4, 1]} showSwipeHandle>\n        <DrawerTrigger render={<Button variant=\"outline\" />}>\n          All markers\n        </DrawerTrigger>\n        <DrawerContent container={container}>\n          <DrawerHeader>\n            <DrawerTitle>All markers</DrawerTitle>\n            <DrawerDescription>Drag up to see the full list.</DrawerDescription>\n          </DrawerHeader>\n          <ul className=\"flex flex-col divide-y overflow-y-auto p-4\">\n            {markers.map(([name, value]) => (\n              <li key={name} className=\"flex justify-between py-2\">\n                <span>{name}</span>\n                <span className=\"text-muted-foreground tabular-nums\">{value}</span>\n              </li>\n            ))}\n          </ul>\n        </DrawerContent>\n      </Drawer>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}