{
  "component": {
    "id": "resizable-panels",
    "name": "Resizable panels",
    "tier": "pro",
    "exampleId": "resizable-panels",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/resizable-panels-demo.tsx",
    "exportName": "ResizablePanelsDemo",
    "sha256": "7cf40ebafe320dfa14102714b6801fdb699dd10adf1bb57f6a2c1cfa77d8cca9",
    "helperImports": [],
    "directComponentImports": [
      "resizable-panels"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/resizable-panels",
    "registryUrl": "https://tidalui.com/r/pro/resizable-panels.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/resizable-panels",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/resizable-panels",
      "registryUrl": "https://tidalui.com/r/pro/resizable-panels.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/resizable-panels.tsx",
    "exports": [
      "TidalResizablePanels"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/resizable-panels.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "resizable-panels"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/resizable-panels.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/resizable-panels.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/resizable-panels-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useRef, useState } from \"react\";\n\nimport { TidalResizablePanels } from \"./components/ui/resizable-panels\";\n\nimport \"./components/ui/resizable-panels.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .resizable-demo,\\n.tidal-scope .resizable-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .resizable-demo {\\n  width: 100%;\\n  min-width: 0;\\n  color: var(--t-ink);\\n  container: resizable-demo / inline-size;\\n  font-family: Inter, ui-sans-serif, system-ui, sans-serif;\\n}\\n\\n.tidal-scope .resizable-demo-frame {\\n  min-width: 0;\\n  padding: clamp(8px, 2.8cqi, 28px);\\n}\\n\\n.tidal-scope .resizable-demo-browser,\\n.tidal-scope .resizable-demo-document {\\n  min-width: 0;\\n  min-height: 100%;\\n}\\n\\n.tidal-scope .resizable-demo-browser {\\n  display: flex;\\n  flex-direction: column;\\n  padding: 20px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .resizable-demo-browser-head,\\n.tidal-scope .resizable-demo-document > header,\\n.tidal-scope .resizable-demo-document > footer {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .resizable-demo-browser-head > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .resizable-demo-browser-head span,\\n.tidal-scope .resizable-demo-document > header,\\n.tidal-scope .resizable-demo-document-copy > p:first-child {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 680;\\n  letter-spacing: 0.09em;\\n  line-height: 1.4;\\n  text-transform: uppercase;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-browser-head > span {\\n  display: grid;\\n  width: 28px;\\n  height: 28px;\\n  flex: none;\\n  place-items: center;\\n  border: 1px solid var(--t-border);\\n  border-radius: 7px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .resizable-demo-browser h2,\\n.tidal-scope .resizable-demo-document h2 {\\n  margin: 4px 0 0;\\n  font-size: 18px;\\n  font-weight: 690;\\n  letter-spacing: -0.045em;\\n  line-height: 1.1;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-document-list {\\n  display: grid;\\n  min-width: 0;\\n  gap: 7px;\\n  margin-top: 20px;\\n}\\n\\n.tidal-scope .resizable-demo-document-list button {\\n  display: grid;\\n  min-width: 0;\\n  min-height: 54px;\\n  grid-template-columns: 36px minmax(0, 1fr);\\n  grid-template-rows: auto auto;\\n  align-items: center;\\n  column-gap: 10px;\\n  padding: 8px 10px;\\n  border: 1px solid transparent;\\n  border-radius: 10px;\\n  background: transparent;\\n  color: var(--t-ink);\\n  font: inherit;\\n  text-align: start;\\n  cursor: pointer;\\n  animation: resizable-demo-row 420ms var(--t-ease-out) both;\\n  animation-delay: calc(min(var(--resizable-demo-index), 4) * 55ms + 120ms);\\n  transition:\\n    border-color 180ms,\\n    background 180ms,\\n    color 180ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .resizable-demo-document-list button > span {\\n  display: grid;\\n  width: 34px;\\n  height: 34px;\\n  grid-row: 1 / 3;\\n  place-items: center;\\n  border: 1px solid var(--t-border);\\n  border-radius: 7px;\\n  background: var(--t-surface);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 700;\\n  letter-spacing: 0.04em;\\n}\\n\\n.tidal-scope .resizable-demo-document-list button strong,\\n.tidal-scope .resizable-demo-document-list button small {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-document-list button strong {\\n  align-self: end;\\n  font-size: 11px;\\n  line-height: 1.25;\\n}\\n\\n.tidal-scope .resizable-demo-document-list button small {\\n  align-self: start;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.35;\\n}\\n\\n.tidal-scope .resizable-demo-document-list button[aria-pressed=\\\"true\\\"] {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .resizable-demo-document-list button[aria-pressed=\\\"true\\\"] > span {\\n  border-color: var(--t-surface);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .resizable-demo-document-list button[aria-pressed=\\\"true\\\"] small {\\n  color: var(--t-surface);\\n  opacity: 0.7;\\n}\\n\\n.tidal-scope\\n  .resizable-demo-document-list\\n  button:not([aria-pressed=\\\"true\\\"]):hover {\\n  border-color: var(--t-border);\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .resizable-demo-document-list button:active,\\n.tidal-scope .resizable-demo-balance:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .resizable-demo-document-list button:focus-visible,\\n.tidal-scope .resizable-demo-balance:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 2px;\\n}\\n\\n.tidal-scope .resizable-demo-balance {\\n  min-width: 0;\\n  min-height: 44px;\\n  margin-top: auto;\\n  padding: 9px 12px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 680;\\n  line-height: 1.35;\\n  overflow-wrap: anywhere;\\n  cursor: pointer;\\n  transition:\\n    border-color 180ms,\\n    background 180ms,\\n    color 180ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .resizable-demo-balance:hover {\\n  border-color: var(--t-ink);\\n}\\n\\n.tidal-scope .resizable-demo-document {\\n  display: flex;\\n  flex-direction: column;\\n  padding: clamp(22px, 4cqi, 38px);\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .resizable-demo-document > header {\\n  padding-bottom: 15px;\\n  border-bottom: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .resizable-demo-document-copy {\\n  min-width: 0;\\n  padding: 30px 0 24px;\\n}\\n\\n.tidal-scope .resizable-demo-document h2 {\\n  max-width: 520px;\\n  margin-top: 10px;\\n  font-size: clamp(28px, 5cqi, 48px);\\n}\\n\\n.tidal-scope .resizable-demo-document-copy > p:last-child {\\n  max-width: 560px;\\n  margin: 16px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.7;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-document ol {\\n  padding: 0;\\n  margin: 0;\\n  border-top: 1px solid var(--t-border);\\n  list-style: none;\\n}\\n\\n.tidal-scope .resizable-demo-document li {\\n  display: grid;\\n  min-width: 0;\\n  min-height: 48px;\\n  grid-template-columns: 32px minmax(0, 1fr) auto;\\n  align-items: center;\\n  gap: 10px;\\n  border-bottom: 1px solid var(--t-border);\\n  font-size: 11px;\\n}\\n\\n.tidal-scope .resizable-demo-document li > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n}\\n\\n.tidal-scope .resizable-demo-document li strong {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-document > footer {\\n  flex-wrap: wrap;\\n  margin-top: auto;\\n  padding-top: 22px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .resizable-demo-document output {\\n  color: var(--t-ink);\\n  font-weight: 680;\\n}\\n\\n@container resizable-demo (max-width: 560px) {\\n  .tidal-scope .resizable-demo-frame {\\n    padding: 6px;\\n  }\\n\\n  .tidal-scope .resizable-demo-browser,\\n  .tidal-scope .resizable-demo-document {\\n    padding: 17px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document-list {\\n    margin-top: 13px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document-list button {\\n    min-height: 48px;\\n  }\\n\\n  .tidal-scope .resizable-demo-balance {\\n    font-size: 16px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document-copy {\\n    padding-block: 19px 16px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document h2 {\\n    font-size: 28px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document li {\\n    min-height: 44px;\\n  }\\n\\n  .tidal-scope .resizable-demo-document > footer {\\n    padding-top: 15px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .resizable-demo-document-list button,\\n  .tidal-scope .resizable-demo-balance {\\n    animation: none;\\n    transition: none;\\n  }\\n\\n  .tidal-scope .resizable-demo-document-list button:active,\\n  .tidal-scope .resizable-demo-balance:active {\\n    transform: none;\\n  }\\n}\\n\\n@keyframes resizable-demo-row {\\n  from {\\n    opacity: 0;\\n    transform: translateY(7px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: none;\\n  }\\n}\";\n\nconst DOCUMENTS = [\n  {\n    id: \"launch-brief\",\n    code: \"BR-18\",\n    title: \"Launch brief\",\n    type: \"Brief\",\n    updated: \"Edited today\",\n    summary:\n      \"A compact plan for the fictional October release review, including the handoff order and open questions.\",\n    sections: [\"Release goal\", \"Review order\", \"Open questions\"],\n  },\n  {\n    id: \"research-notes\",\n    code: \"NT-07\",\n    title: \"Research notes\",\n    type: \"Notes\",\n    updated: \"Edited yesterday\",\n    summary:\n      \"Collected observations from a local sample review of navigation, narrow layouts, and keyboard paths.\",\n    sections: [\"Navigation\", \"Compact layouts\", \"Keyboard paths\"],\n  },\n  {\n    id: \"release-checklist\",\n    code: \"CK-24\",\n    title: \"Release checklist\",\n    type: \"Checklist\",\n    updated: \"Edited Oct 12\",\n    summary:\n      \"The fictional checks used to prepare a local preview before a separate browser acceptance pass.\",\n    sections: [\"Source review\", \"Responsive preview\", \"Release notes\"],\n  },\n] as const;\n\nexport function ResizablePanelsDemo() {\n  const [value, setValue] = useState(42);\n  const [selectedId, setSelectedId] = useState<\n    (typeof DOCUMENTS)[number][\"id\"]\n  >(DOCUMENTS[0].id);\n  const separatorRef = useRef<HTMLDivElement>(null);\n  const selected =\n    DOCUMENTS.find((document) => document.id === selectedId) ?? DOCUMENTS[0];\n\n  return (\n    <section className=\"resizable-demo\" aria-label=\"Document workspace preview\">\n      <div className=\"resizable-demo-frame\">\n        <TidalResizablePanels\n          value={value}\n          onValueChange={setValue}\n          separatorLabel=\"Resize document list and document detail\"\n          formatValue={(nextValue) =>\n            `Document list ${nextValue} percent, document detail ${100 - nextValue} percent`\n          }\n          separatorRef={separatorRef}\n          primaryPanel={{\n            label: \"Documents\",\n            content: (\n              <div className=\"resizable-demo-browser\">\n                <div className=\"resizable-demo-browser-head\">\n                  <div>\n                    <span>Workspace</span>\n                    <h2>Documents</h2>\n                  </div>\n                  <span>{DOCUMENTS.length}</span>\n                </div>\n                <div\n                  className=\"resizable-demo-document-list\"\n                  role=\"group\"\n                  aria-label=\"Sample documents\"\n                >\n                  {DOCUMENTS.map((document, index) => (\n                    <button\n                      key={document.id}\n                      type=\"button\"\n                      aria-pressed={document.id === selected.id}\n                      onClick={() => setSelectedId(document.id)}\n                      style={\n                        {\n                          \"--resizable-demo-index\": index,\n                        } as React.CSSProperties\n                      }\n                    >\n                      <span>{document.code}</span>\n                      <strong>{document.title}</strong>\n                      <small>{document.type}</small>\n                    </button>\n                  ))}\n                </div>\n                <button\n                  type=\"button\"\n                  className=\"resizable-demo-balance\"\n                  onClick={() => {\n                    setValue(50);\n                    separatorRef.current?.focus({ preventScroll: true });\n                  }}\n                >\n                  Balance panels\n                </button>\n              </div>\n            ),\n          }}\n          secondaryPanel={{\n            label: \"Selected document detail\",\n            content: (\n              <article className=\"resizable-demo-document\">\n                <header>\n                  <span>{selected.code}</span>\n                  <span>{selected.updated}</span>\n                </header>\n                <div className=\"resizable-demo-document-copy\">\n                  <p>{selected.type}</p>\n                  <h2>{selected.title}</h2>\n                  <p>{selected.summary}</p>\n                </div>\n                <ol>\n                  {selected.sections.map((section, index) => (\n                    <li key={section}>\n                      <span>{String(index + 1).padStart(2, \"0\")}</span>\n                      <strong>{section}</strong>\n                      <span aria-hidden=\"true\">↗</span>\n                    </li>\n                  ))}\n                </ol>\n                <footer>\n                  <output>\n                    List {value}% · Detail {100 - value}%\n                  </output>\n                  <span>Fictional documents for this local preview.</span>\n                </footer>\n              </article>\n            ),\n          }}\n        />\n      </div>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <ResizablePanelsDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/resizable-panels.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "42",
      "setter": "setValue",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    },
    {
      "name": "onValueChange",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
