{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Table",
  "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": {
    "container": "Actual wrapper around the native table, allowing bounded overflow.",
    "table": "Native data table; caller supplies caption/header associations.",
    "header": "Native thead.",
    "body": "Native tbody.",
    "footer": "Native tfoot for aggregate data.",
    "row": "Native tr; caller may indicate external selection state.",
    "head": "Native th; caller supplies correct scope.",
    "cell": "Native td data.",
    "caption": "Native caption describing the dataset."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "container": {
      "kind": "element",
      "declaration": "Table",
      "selector": "[data-slot=\"table-container\"]",
      "description": "Actual wrapper around the native table, allowing bounded overflow.",
      "ownership": "actual wrapper"
    },
    "table": {
      "kind": "element",
      "declaration": "Table",
      "selector": "[data-slot=\"table\"]",
      "description": "Native data table; caller supplies caption/header associations.",
      "ownership": "actual wrapper"
    },
    "header": {
      "kind": "element",
      "declaration": "TableHeader",
      "selector": "[data-slot=\"table-header\"]",
      "description": "Native thead.",
      "ownership": "actual wrapper"
    },
    "body": {
      "kind": "element",
      "declaration": "TableBody",
      "selector": "[data-slot=\"table-body\"]",
      "description": "Native tbody.",
      "ownership": "actual wrapper"
    },
    "footer": {
      "kind": "element",
      "declaration": "TableFooter",
      "selector": "[data-slot=\"table-footer\"]",
      "description": "Native tfoot for aggregate data.",
      "ownership": "actual wrapper"
    },
    "row": {
      "kind": "element",
      "declaration": "TableRow",
      "selector": "[data-slot=\"table-row\"]",
      "description": "Native tr; caller may indicate external selection state.",
      "ownership": "actual wrapper"
    },
    "head": {
      "kind": "element",
      "declaration": "TableHead",
      "selector": "[data-slot=\"table-head\"]",
      "description": "Native th; caller supplies correct scope.",
      "ownership": "actual wrapper"
    },
    "cell": {
      "kind": "element",
      "declaration": "TableCell",
      "selector": "[data-slot=\"table-cell\"]",
      "description": "Native td data.",
      "ownership": "actual wrapper"
    },
    "caption": {
      "kind": "element",
      "declaration": "TableCaption",
      "selector": "[data-slot=\"table-caption\"]",
      "description": "Native caption describing the dataset.",
      "ownership": "actual wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "font-weight-medium": "semantic.typography.mediumWeight",
      "font-weight-normal": "semantic.typography.normalWeight",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "table-caption-gap": "components.table.captionGap",
      "table-cell-height": "components.table.cellHeight",
      "table-cell-padding": "components.table.cellPadding",
      "table-head-height": "components.table.headHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Table has nine semantic parts, including both actual DOM elements emitted by Table itself. Header cells retain 40px minimum extent; body cells retain 37px minimum extent and 8px insets, with 14/20px native typography mapped to shared roles. Native sample cell widths are content examples, not fixed columns. Text may wrap rather than being clipped to native single-line specimens; the actual wrapper provides overflow when content still needs it. Caption is deliberately placed below data with an explicit 8px separation. Native th/td/thead/tbody/tfoot and caller scope/caption carry semantics; no ARIA grid or sorting API is invented. Optional data-state=selected is an explicit caller presentation convention, not Table-owned selection behavior. Source TableRow emits no stored selection state.",
    "variants": {
      "rowSelection": {
        "callerAttribute": "data-state",
        "values": [
          "selected"
        ],
        "publicProp": false
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
