{
  "componentId": "shadcn:ScrollArea",
  "referenceComposition": "<section aria-labelledby=\"activity-heading\"><h2 id=\"activity-heading\">Report activity</h2><p>Scroll for all activity; the final details link remains native.</p><div data-slot=\"scroll-area\" role=\"presentation\" data-has-overflow-y=\"\" data-overflow-y-end=\"\"><div data-slot=\"scroll-area-viewport\" data-has-overflow-y=\"\" data-overflow-y-end=\"\" tabindex=\"0\" style=\"overflow:scroll\"><div data-part=\"scroll-area-content\"><ul><li>Report activity 1</li><li>Report activity 2</li><li>Report activity 3</li><li>Report activity 4</li><li>Report activity 5</li><li>Report activity 6</li><li>Report activity 7</li><li>Report activity 8</li><li>Report activity 9</li><li>Report activity 10</li><li>Report activity 11</li><li>Report activity 12</li><li>Report activity 13</li><li>Report activity 14</li><li>Report activity 15</li><li>Report activity 16</li><li>Report activity 17</li><li>Report activity 18</li><li>Report activity 19</li><li>Report activity 20</li><li>Report activity 21</li><li>Report activity 22</li><li>Report activity 23</li><li>Report activity 24</li></ul><a href=\"#activity-details\">View activity details</a></div></div><div data-slot=\"scroll-area-scrollbar\" data-orientation=\"vertical\" aria-hidden=\"true\" style=\"--scroll-area-thumb-height:80px\"><div data-slot=\"scroll-area-thumb\"></div></div></div></section><section id=\"activity-details\"><h2>Activity details</h2></section>",
  "sourceFacts": "Exact wrapper props/slots/native output from sources/react-api-inventory.json and pinned code.",
  "contentAlternative": "The region has a caller-supplied real heading and all scrollable content remains native text/list/link. The visual scrollbar is aria-hidden; it is not a second fake adjustable widget. Overflow must not be the only indication that more content exists.",
  "updatesAndDescendants": "Root is role=presentation and wraps an internally created Viewport, vertical ScrollBar and Corner. Scrollbar/Corner are aria-hidden. Viewport is tabindex=0 only while at least one axis overflows, otherwise -1. Native scrolling drives viewport position, edge and thumb geometry. Root props are not Viewport props; the wrapper exports no Viewport and does not promise forwarding onScroll or aria-label to it. External sizing must make the viewport constrained. ScrollBar orientation defaults vertical; horizontal is explicitly composed. It does not auto-follow messages or preserve chat anchors; MessageScroller owns that behavior.",
  "referenceDecision": "This reference uses an outer labelled section because the wrapper Root remains presentational. Native keyboard/wheel/touch scrolling and focusable descendants remain available. Browser scroll position is internal viewport state, not an invented Root value/onValueChange API.",
  "keyboard": "Root is role=presentation and wraps an internally created Viewport, vertical ScrollBar and Corner. Scrollbar/Corner are aria-hidden. Viewport is tabindex=0 only while at least one axis overflows, otherwise -1. Native scrolling drives viewport position, edge and thumb geometry. Root props are not Viewport props; the wrapper exports no Viewport and does not promise forwarding onScroll or aria-label to it. External sizing must make the viewport constrained. ScrollBar orientation defaults vertical; horizontal is explicitly composed. It does not auto-follow messages or preserve chat anchors; MessageScroller owns that behavior.",
  "naming": "The HTML projection identifies all required visible content/labels. No unnecessary ARIA role/name is imposed on native text, headings, kbd or tables.",
  "protocol": "Source-normalized observations project real internal image/scroll state, derived progress, caller-owned upload props or the composed Collapsible protocol. No generic activation callback is invented. Internal lifecycle observations are not public Root events.",
  "semanticParts": {
    "root": {
      "kind": "element",
      "selector": "[data-slot=\"scroll-area\"]",
      "description": "Presentational source Root; constrained by chosen height, not a fake adjustable value."
    },
    "viewport": {
      "kind": "element",
      "selector": "[data-slot=\"scroll-area-viewport\"]",
      "description": "Actual private viewport, tabindex follows measured overflow; Root props are not forwarded here."
    },
    "scrollbar": {
      "kind": "element",
      "selector": "[data-slot=\"scroll-area-scrollbar\"]",
      "description": "Actual aria-hidden draggable source scrollbar; orientation vertical or horizontal."
    },
    "thumb": {
      "kind": "element",
      "selector": "[data-slot=\"scroll-area-thumb\"]",
      "description": "Actual private Thumb, dimensions/translation remain source-measured."
    },
    "content": {
      "kind": "element",
      "selector": "[data-part=\"scroll-area-content\"]",
      "description": "Chosen content padding/flow, not an exported Viewport API."
    }
  },
  "visualStateMapping": {
    "orientation": {
      "prop": "ScrollBar.orientation",
      "values": [
        "vertical",
        "horizontal"
      ]
    },
    "overflow": {
      "source": "actual viewport/content geometry",
      "states": [
        "fits",
        "vertical",
        "both-axes"
      ]
    }
  }
}
