{
  "component": {
    "id": "scroll-area",
    "name": "Scroll area",
    "tier": "pro",
    "exampleId": "scroll-area",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/scroll-area-demo.tsx",
    "exportName": "ScrollAreaDemo",
    "sha256": "eb46f8cd1324b22c611ea1cf3bae7952d0ccae250bbc991756022f38051af1f3",
    "helperImports": [],
    "directComponentImports": [
      "scroll-area"
    ],
    "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/scroll-area",
    "registryUrl": "https://tidalui.com/r/pro/scroll-area.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/scroll-area",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/scroll-area",
      "registryUrl": "https://tidalui.com/r/pro/scroll-area.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/scroll-area.tsx",
    "exports": [
      "TidalScrollArea"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/scroll-area.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "scroll-area"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/scroll-area.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/scroll-area.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/scroll-area-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useRef, useState } from \"react\";\n\nimport { TidalScrollArea } from \"./components/ui/scroll-area\";\n\nimport \"./components/ui/scroll-area.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .scroll-area-demo,\\n.tidal-scope .scroll-area-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .scroll-area-demo {\\n  width: 100%;\\n  min-width: 0;\\n  container: scroll-area-demo / inline-size;\\n}\\n\\n.tidal-scope .scroll-area-demo-frame {\\n  min-width: 0;\\n  padding: 22px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 22px;\\n  background:\\n    linear-gradient(var(--t-border) 1px, transparent 1px) 0 0 / 30px 30px,\\n    var(--t-subtle);\\n}\\n\\n.tidal-scope .scroll-area-demo-list {\\n  display: grid;\\n  width: max-content;\\n  min-width: 100%;\\n  grid-template-columns: repeat(6, minmax(226px, 1fr));\\n  gap: 1px;\\n  margin: 0;\\n  padding: 0;\\n  background: var(--t-border);\\n  list-style: none;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li {\\n  display: flex;\\n  min-width: 0;\\n  min-height: 238px;\\n  flex-direction: column;\\n  padding: 18px;\\n  background: var(--t-surface);\\n  animation: tidal-scroll-card-in 420ms var(--t-ease-out) both;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li:nth-child(2) {\\n  animation-delay: 48ms;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li:nth-child(3) {\\n  animation-delay: 96ms;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li:nth-child(4) {\\n  animation-delay: 144ms;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li:nth-child(5) {\\n  animation-delay: 192ms;\\n}\\n\\n.tidal-scope .scroll-area-demo-list > li:nth-child(n + 6) {\\n  animation-delay: 240ms;\\n}\\n\\n.tidal-scope .scroll-area-demo-index {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 700;\\n  letter-spacing: 0.09em;\\n  line-height: 1.35;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .scroll-area-demo-list time {\\n  margin-top: auto;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .scroll-area-demo-list h3 {\\n  max-width: 13ch;\\n  margin: 9px 0 0;\\n  font-size: 21px;\\n  font-weight: 570;\\n  letter-spacing: -0.045em;\\n  line-height: 1.05;\\n  text-wrap: balance;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .scroll-area-demo-list p {\\n  max-width: 34ch;\\n  margin: 10px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container scroll-area-demo (max-width: 520px) {\\n  .tidal-scope .scroll-area-demo-frame {\\n    padding: 7px;\\n  }\\n\\n  .tidal-scope .scroll-area-demo-list {\\n    grid-template-columns: repeat(6, minmax(252px, 1fr));\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .scroll-area-demo-list > li {\\n    animation: none;\\n  }\\n}\\n\\n@keyframes tidal-scroll-card-in {\\n  from {\\n    opacity: 0;\\n    transform: translateY(7px);\\n  }\\n}\";\n\nconst RELEASES = [\n  {\n    id: \"r-13\",\n    version: \"1.3\",\n    dateTime: \"2026-09-29\",\n    date: \"Sep 29\",\n    title: \"Mobile details\",\n    summary: \"Narrow previews keep readable controls and natural scrolling.\",\n  },\n  {\n    id: \"r-14\",\n    version: \"1.4\",\n    dateTime: \"2026-10-02\",\n    date: \"Oct 2\",\n    title: \"Search recovery\",\n    summary: \"Empty results include a direct reset with stable input focus.\",\n  },\n  {\n    id: \"r-15\",\n    version: \"1.5\",\n    dateTime: \"2026-10-05\",\n    date: \"Oct 5\",\n    title: \"Activity groups\",\n    summary: \"Grouped updates now keep time, actor, and context together.\",\n  },\n  {\n    id: \"r-16\",\n    version: \"1.6\",\n    dateTime: \"2026-10-08\",\n    date: \"Oct 8\",\n    title: \"Project labels\",\n    summary: \"Faster filtering with removable labels and visible counts.\",\n  },\n  {\n    id: \"r-17\",\n    version: \"1.7\",\n    dateTime: \"2026-10-11\",\n    date: \"Oct 11\",\n    title: \"Invoice layouts\",\n    summary: \"Compact totals and line-item details for document previews.\",\n  },\n  {\n    id: \"r-18\",\n    version: \"1.8\",\n    dateTime: \"2026-10-14\",\n    date: \"Oct 14\",\n    title: \"Keyboard review\",\n    summary:\n      \"Clear focus order and visible recovery actions across the library.\",\n  },\n] as const;\n\nexport function ScrollAreaDemo() {\n  const viewportRef = useRef<HTMLDivElement>(null);\n  const [position, setPosition] = useState(\"At the first update.\");\n\n  function updatePosition(node: HTMLDivElement) {\n    const maximum = Math.max(0, node.scrollWidth - node.clientWidth);\n    if (node.scrollLeft <= 4) setPosition(\"At the first update.\");\n    else if (node.scrollLeft >= maximum - 4)\n      setPosition(\"At the latest update.\");\n    else setPosition(\"Reviewing the updates in between.\");\n  }\n\n  return (\n    <section className=\"scroll-area-demo\" aria-label=\"Release notes preview\">\n      <div className=\"scroll-area-demo-frame\">\n        <TidalScrollArea\n          title=\"Release notes\"\n          description=\"Browse the latest product updates.\"\n          meta={`${RELEASES.length} updates`}\n          orientation=\"horizontal\"\n          viewportRef={viewportRef}\n          viewportProps={{\n            onScroll: (event) => updatePosition(event.currentTarget),\n          }}\n          startAction={{\n            label: \"First update\",\n            accessibleLabel: \"Scroll to the first release update\",\n            onAction: () => setPosition(\"Returning to the first update.\"),\n          }}\n          endAction={{\n            label: \"Latest update\",\n            accessibleLabel: \"Scroll to the latest release update\",\n            onAction: () => setPosition(\"Moving to the latest update.\"),\n          }}\n          footer={\n            <span role=\"status\" aria-live=\"polite\">\n              {position} Sample data. Changes stay in this preview.\n            </span>\n          }\n        >\n          <ol className=\"scroll-area-demo-list\">\n            {RELEASES.map((release, index) => (\n              <li key={release.id}>\n                <div className=\"scroll-area-demo-index\">\n                  <span>{String(index + 1).padStart(2, \"0\")}</span>\n                  <span>v{release.version}</span>\n                </div>\n                <time dateTime={release.dateTime}>{release.date}</time>\n                <h3>{release.title}</h3>\n                <p>{release.summary}</p>\n              </li>\n            ))}\n          </ol>\n        </TidalScrollArea>\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      <ScrollAreaDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/scroll-area.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "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": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "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": []
}
