{
  "format": "ui-contract-component-draft",
  "id": "shadcn:ScrollArea",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "behavior": "behavior.scxml",
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    }
  },
  "anatomy": {
    "root": "Presentational source Root; constrained by chosen height, not a fake adjustable value.",
    "viewport": "Actual private viewport, tabindex follows measured overflow; Root props are not forwarded here.",
    "scrollbar": "Actual aria-hidden draggable source scrollbar; orientation vertical or horizontal.",
    "thumb": "Actual private Thumb, dimensions/translation remain source-measured.",
    "content": "Chosen content padding/flow, not an exported Viewport API."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "ScrollArea",
      "selector": "[data-slot=\"scroll-area\"]",
      "description": "Presentational source Root; constrained by chosen height, not a fake adjustable value.",
      "ownership": "actual source wrapper"
    },
    "viewport": {
      "kind": "element",
      "declaration": "ScrollArea",
      "selector": "[data-slot=\"scroll-area-viewport\"]",
      "description": "Actual private viewport, tabindex follows measured overflow; Root props are not forwarded here.",
      "ownership": "actual source wrapper"
    },
    "scrollbar": {
      "kind": "element",
      "declaration": "ScrollBar",
      "selector": "[data-slot=\"scroll-area-scrollbar\"]",
      "description": "Actual aria-hidden draggable source scrollbar; orientation vertical or horizontal.",
      "ownership": "actual source wrapper"
    },
    "thumb": {
      "kind": "element",
      "declaration": "ScrollBar",
      "selector": "[data-slot=\"scroll-area-thumb\"]",
      "description": "Actual private Thumb, dimensions/translation remain source-measured.",
      "ownership": "actual source wrapper"
    },
    "content": {
      "kind": "element",
      "declaration": "ScrollArea",
      "selector": "[data-part=\"scroll-area-content\"]",
      "description": "Chosen content padding/flow, not an exported Viewport API.",
      "ownership": "caller children"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-ring": "semantic.color.ring",
      "focus-shadow": "semantic.focus.shadow",
      "focus-spread": "semantic.focus.spread",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "scroll-area-bar-width": "components.scroll-area.barWidth",
      "scroll-area-height": "components.scroll-area.height",
      "scroll-area-inset": "components.scroll-area.inset",
      "scroll-area-radius": "components.scroll-area.radius",
      "scroll-area-thumb-minimum": "components.scroll-area.thumbMinimum"
    },
    "runtimeProperties": {
      "--scroll-area-thumb-height": {
        "source": "BaseUI Scrollbar inline measured thumbSize.height",
        "purpose": "Actual vertical thumb length; viewport/content measurements remain source-owned."
      },
      "--scroll-area-thumb-width": {
        "source": "BaseUI Scrollbar inline measured thumbSize.width",
        "purpose": "Actual horizontal thumb length; no fixed native specimen length becomes behavior."
      }
    },
    "layoutPolicy": "The selected native scroll specimen supplies 288px extent,8px corner,16px content inset and 6px rounded thumb thickness. Width remains fluid. Source Scrollbar padding 1px makes an8px total bar; actual primitive absolute placement, overflow, proportional thumb length/translation and Corner remain authoritative. Content padding is caller-owned because the wrapper exports no Viewport; Root props do not become Viewport callbacks or labels. The outer section supplies a real heading; Root stays presentational. Viewport becomes a native tab destination only when overflowing. Horizontal ScrollBar is explicitly added in caller children, which this wrapper places inside its Viewport; the wrapper vertical bar remains a Root sibling of that Viewport. Horizontal scrollbar uses column flex flow so flex-1 fills its thickness rather than overriding source-measured thumb width. Focus outline and native links remain meaningful without a draggable visual scrollbar; all text/list content is retained. No fake ARIA scrollbar or Root value/onValueChange is invented. Static thumb dimensions are finite illustrative runtime measurements, not copied node identities.",
    "variants": {
      "orientation": {
        "prop": "ScrollBar.orientation",
        "values": [
          "vertical",
          "horizontal"
        ]
      },
      "overflow": {
        "source": "actual viewport/content geometry",
        "states": [
          "fits",
          "vertical",
          "both-axes"
        ]
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
