{
  "antiPatterns": [
    "Persisting the visual width on each pointer move.",
    "Assuming the center minimum can fit alongside both side minimums at every container width."
  ],
  "api": {
    "importPath": "@ancrel/workspace",
    "props": [
      {
        "name": "children",
        "required": true,
        "type": "ReactNode"
      },
      {
        "name": "className",
        "required": false,
        "type": "string"
      },
      {
        "name": "key",
        "required": false,
        "type": "React.Key | null | undefined"
      },
      {
        "name": "labels",
        "required": false,
        "type": "Partial<ResizableSplitLabels>"
      },
      {
        "name": "left",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "leftConfig",
        "required": false,
        "type": "SideConfig"
      },
      {
        "name": "minCenterWidth",
        "required": false,
        "type": "number"
      },
      {
        "name": "onWidthsChange",
        "required": false,
        "type": "((widths: SplitWidths) => void) | undefined"
      },
      {
        "name": "persistKey",
        "required": false,
        "type": "string"
      },
      {
        "name": "ref",
        "required": false,
        "type": "React.Ref<HTMLDivElement> | undefined"
      },
      {
        "name": "right",
        "required": false,
        "type": "ReactNode"
      },
      {
        "name": "rightConfig",
        "required": false,
        "type": "SideConfig"
      },
      {
        "name": "storage",
        "required": false,
        "type": "SplitStorage | null"
      }
    ],
    "symbol": "ResizableSplit",
    "typeRef": "api/workspace/split/index.d.ts"
  },
  "constraints": [
    "Supply a SideConfig for each visible side pane, with dimensions in CSS pixels.",
    "Use a distinct persistKey for each workspace that should retain its own widths.",
    "Import the token CSS and the workspace stylesheet."
  ],
  "docs": "raw/frontend/resizable-split.md",
  "examples": [
    {
      "code": "'use client'\n\nimport { ResizableSplit } from '@ancrel/workspace'\nimport '@ancrel/tokens/css'\nimport '@ancrel/workspace/styles.css'\n\nexport default function App() {\n  return (\n    <ResizableSplit\n      left={<nav aria-label=\"Contents\">Contents</nav>}\n      leftConfig={{ defaultWidth: 240, minWidth: 180, maxWidth: 360 }}\n      right={<aside aria-label=\"Notes\">Notes</aside>}\n      rightConfig={{ defaultWidth: 280, minWidth: 200, maxWidth: 480 }}\n      labels={{ leftHandle: 'Resize contents', rightHandle: 'Resize notes' }}\n      persistKey=\"reading-room\"\n    >\n      <article><h2>Reading room</h2><p>Use either separator to make more room for the text.</p></article>\n    </ResizableSplit>\n  )\n}\n",
      "command": "pnpm test",
      "entry": "examples/fe.resizable-split/App.tsx",
      "fixture": "examples/fe.resizable-split/",
      "id": "minimal"
    }
  ],
  "id": "fe.resizable-split",
  "kind": "react-component",
  "language": "typescript",
  "layer": "frontend",
  "owner": "frontend-infra",
  "package": {
    "ecosystem": "npm",
    "name": "@ancrel/workspace",
    "version": "0.2.0"
  },
  "provenance": {
    "changes": "Retained proportional allocation, narrow-container floors, side-aware keyboard steps and resets. Added effective ARIA bounds, pointer capture cleanup, commit-only notifications and post-hydration storage reads. Replaced embedded labels, styling and storage keys with injectable labels, token CSS and a namespaced storage adapter.",
    "commit": "4cc384c3bdbd09a3a50268adf81ba23f53aac93e",
    "mode": "extracted",
    "origin": "rule-studio",
    "path": "frontend/src/components/common/ResizableSplit.tsx",
    "rights": "org-internal; approved-by=owner; ref=item-15"
  },
  "schemaVersion": 1,
  "stability": "experimental",
  "summary": "Resize either side of a center pane by pointer or keyboard and retain widths per workspace.",
  "tokenDependencies": [
    "comp.split.handle.hitArea",
    "comp.split.handle.size",
    "ref.color.x202025",
    "ref.color.x684a84",
    "ref.color.x737380",
    "ref.color.x858591",
    "ref.color.xcdb2ea",
    "ref.color.xededef",
    "ref.curve.standard",
    "ref.duration.ms120",
    "ref.level.n0",
    "ref.space.px2",
    "ref.space.px32",
    "ref.space.px40",
    "sys.action.focus",
    "sys.border.control",
    "sys.ink.primary",
    "sys.layer.base",
    "sys.motion.easing",
    "sys.motion.fast",
    "sys.size.hitTarget",
    "sys.space.hair"
  ]
}
