{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "splitter-three-pane",
  "title": "Splitter Three Pane",
  "description": "A navigator, list and detail layout with three resizable panes where each handle only trades space with its neighbour and every pane keeps a minimum.",
  "registryDependencies": [
    "@tealmac/splitter"
  ],
  "files": [
    {
      "path": "registry/patterns/splitter-three-pane/splitter-three-pane.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Splitter } from \"@/components/ui/splitter\"\n\nexport interface SplitterThreePaneProps {\n  navigator: React.ReactNode\n  list: React.ReactNode\n  detail: React.ReactNode\n  /** Initial sizes in percent. Default 20, 30, 50. */\n  defaultSizes?: [number, number, number]\n}\n\n/**\n * The classic mail layout: folders, messages, reading pane. Each handle moves\n * the border between two neighbours only, so the third pane never changes\n * width behind the person's back. Minimum sizes keep every pane usable, and\n * there are two separate handles, each named after the pane it resizes.\n */\nexport function SplitterThreePane({\n  navigator,\n  list,\n  detail,\n  defaultSizes = [20, 30, 50],\n}: SplitterThreePaneProps) {\n  return (\n    <div className=\"h-72 w-full\">\n      <Splitter\n        panels={[\n          {\n            id: \"navigator\",\n            label: \"Navigator\",\n            defaultSize: defaultSizes[0],\n            min: 12,\n            max: 30,\n            collapsible: true,\n            content: navigator,\n          },\n          {\n            id: \"list\",\n            label: \"List\",\n            defaultSize: defaultSizes[1],\n            min: 20,\n            content: list,\n          },\n          {\n            id: \"detail\",\n            label: \"Detail\",\n            defaultSize: defaultSizes[2],\n            min: 25,\n            content: detail,\n          },\n        ]}\n      />\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}