{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Tabs",
  "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": "Actual raw Root; supported reference orientation is horizontal.",
    "list": "Named tablist with actual default/line variant.",
    "trigger": "Native focusable Tab, including focusable aria-disabled source tabs.",
    "panel": "Actual associated panel; inactive keepMounted projections remain hidden."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "Tabs",
      "selector": "[data-slot=\"tabs\"]",
      "description": "Actual raw Root; supported reference orientation is horizontal.",
      "ownership": "actual pinned wrapper"
    },
    "list": {
      "kind": "element",
      "declaration": "TabsList",
      "selector": "[data-slot=\"tabs-list\"]",
      "description": "Named tablist with actual default/line variant.",
      "ownership": "actual pinned wrapper"
    },
    "trigger": {
      "kind": "element",
      "declaration": "TabsTrigger",
      "selector": "[data-slot=\"tabs-trigger\"]",
      "description": "Native focusable Tab, including focusable aria-disabled source tabs.",
      "ownership": "actual pinned wrapper"
    },
    "panel": {
      "kind": "element",
      "declaration": "TabsContent",
      "selector": "[data-slot=\"tabs-content\"]",
      "description": "Actual associated panel; inactive keepMounted projections remain hidden.",
      "ownership": "actual pinned wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "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",
      "font-weight-medium": "semantic.typography.mediumWeight",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "tabs-line-gap": "components.tabs.lineGap",
      "tabs-line-thickness": "components.tabs.lineThickness",
      "tabs-list-padding": "components.tabs.listPadding",
      "tabs-list-radius": "components.tabs.listRadius",
      "tabs-panel-gap": "components.tabs.panelGap",
      "tabs-trigger-gap": "components.tabs.triggerGap",
      "tabs-trigger-height": "components.tabs.triggerHeight",
      "tabs-trigger-padding-block": "components.tabs.triggerPaddingBlock",
      "tabs-trigger-padding-inline": "components.tabs.triggerPaddingInline",
      "tabs-trigger-radius": "components.tabs.triggerRadius"
    },
    "runtimeProperties": {},
    "layoutPolicy": "The selected reference uses actual horizontal Tabs, with a native 25px trigger box, centered 14/20 Medium text, nominal 4/10px insets,6px glyph gap,8px trigger radius,3px list inset and 10px list corner. Nominal block padding and fixed height disagree as layout arithmetic; the centered 20px line remains within the 25px box and its real text bounds are checked rather than clipping it. The native selected underline uses 1px stroke/4px separation, explicitly preferred over the pinned h-0.5 utility. Width is intrinsic with bounded native horizontal overflow, never fixed 67px tab specimens. Panel spacing 12px and visible panel focus outline are explicit reference decisions. Current pinned Root consumes orientation without forwarding it to the primitive; its keyboard/ARIA remain horizontal. This reference therefore does not advertise working vertical Tabs or change frozen code. Default/line appearance, selected versus focused state, disabled-focusable Tabs, manual/automatic activation and controlled cancellation retain source behavior. Client-registered ID relationships and keepMounted hidden inactive panels are explicit fixtures. RTL behavior requires the actual Base UI DirectionProvider plus matching HTML direction.",
    "variants": {
      "list.variant": [
        "default",
        "line"
      ],
      "supportedReferenceOrientation": "horizontal",
      "upstreamLimitation": "Root orientation does not reach primitive context."
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
