{
  "$schema": "https://design.senvenli.com/schema/component.full.json",
  "kind": "component",
  "family": "layout",
  "status": "alpha",
  "import": "@senvenli/react/layout",
  "name": "scroll-area",
  "title": "Scroll area",
  "exports": [
    "ScrollArea"
  ],
  "description": "A region that scrolls inside a height limit with thin themed scrollbars, keyboard reachable.",
  "keywords": [
    "scroll",
    "overflow",
    "scrollbar",
    "pane",
    "list"
  ],
  "usage": {
    "when": [
      "A long list or pane must stay within a fixed height."
    ],
    "instead": [
      {
        "use": "data-table",
        "when": "Rows need a sticky header, paging and their own scrolling."
      },
      {
        "use": "drawer",
        "when": "Long side content belongs in a panel opened on demand."
      }
    ]
  },
  "a11y": {
    "keyboard": [
      {
        "keys": "Tab",
        "does": "Moves focus into the region so arrow keys scroll it."
      }
    ],
    "builtIn": [
      "The region is focusable and announced by its label."
    ],
    "youProvide": [
      "An `aria-label` that names the region."
    ]
  },
  "genui": {
    "expose": false
  },
  "source": [
    "src/layout/scroll-area.tsx"
  ],
  "props": {
    "ScrollArea": [
      {
        "name": "children",
        "type": "React.ReactNode",
        "required": true,
        "origin": "own"
      },
      {
        "name": "aria-label",
        "type": "string",
        "required": true,
        "origin": "own",
        "description": "Names the region; screen readers announce it when focus enters.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "maxHeight",
        "type": "string | number",
        "required": false,
        "origin": "own",
        "description": "The region's height limit (\"320px\", 320, \"60vh\"); for horizontal areas, set the width on the parent.",
        "schema": {
          "type": "string"
        }
      },
      {
        "name": "fill",
        "type": "boolean",
        "required": false,
        "origin": "own",
        "default": "false",
        "description": "Fills the parent's height and scrolls inside it, for a pane in a flex column or a grid\nrow that is given its height: a conversation's messages between its header and the reply box, a list\nbeside it. The parent must give the area a definite height (`min-h-0` on a flex or grid child).\nLeave `maxHeight` out when filling.",
        "schema": {
          "type": "boolean"
        }
      },
      {
        "name": "orientation",
        "type": "\"both\" | \"horizontal\" | \"vertical\"",
        "required": false,
        "origin": "own",
        "default": "\"vertical\"",
        "schema": {
          "type": "string",
          "enum": [
            "both",
            "horizontal",
            "vertical"
          ]
        }
      }
    ]
  },
  "tokens": [
    "ds-border-bold",
    "ds-border-focused",
    "ds-shadow-overflow"
  ],
  "strings": [],
  "quality": {
    "tests": true,
    "a11y": false,
    "docs": false,
    "visual": false,
    "dark": false,
    "rtl": false,
    "mcp": true,
    "generic": true
  }
}
