{
  "$schema": "https://blode.co/ui/schema/registry-item.json",
  "name": "resizable",
  "title": "Resizable",
  "author": "Matthew Blode",
  "description": "A layout component with draggable handles for resizing panels.",
  "dependencies": ["react-resizable-panels@^4"],
  "files": [
    {
      "path": "ui/resizable.tsx",
      "content": "\"use client\";\n\nimport { GripVerticalIcon } from \"blode-icons-react\";\nimport * as ResizablePrimitive from \"react-resizable-panels\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst ResizablePanelGroup = ({ className, ...props }: ResizablePrimitive.GroupProps) => (\n  <ResizablePrimitive.Group\n    className={cn(\"flex h-full w-full aria-[orientation=vertical]:flex-col\", className)}\n    data-slot=\"resizable-panel-group\"\n    {...props}\n  />\n);\n\nconst ResizablePanel = ({ ...props }: ResizablePrimitive.PanelProps) => (\n  <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />\n);\n\nconst ResizableHandle = ({\n  withHandle,\n  className,\n  ...props\n}: ResizablePrimitive.SeparatorProps & {\n  withHandle?: boolean;\n}) => (\n  <ResizablePrimitive.Separator\n    className={cn(\n      \"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90\",\n      className,\n    )}\n    data-slot=\"resizable-handle\"\n    {...props}\n  >\n    {withHandle && (\n      <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border\">\n        <GripVerticalIcon className=\"size-2.5\" />\n      </div>\n    )}\n  </ResizablePrimitive.Separator>\n);\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n",
      "type": "registry:ui",
      "target": ""
    }
  ],
  "type": "registry:ui"
}
