{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Checkbox",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    },
    "behavior": "behavior.scxml"
  },
  "anatomy": {
    "field": "Optional labelled field arrangement; not emitted by Checkbox itself.",
    "control": "Actual span role=checkbox source root.",
    "indicator": "Actual checked/mixed source indicator."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "field": {
      "kind": "element",
      "declaration": "Checkbox",
      "selector": "[data-part=\"checkbox-field\"]",
      "description": "Optional labelled field arrangement; not emitted by Checkbox itself.",
      "ownership": "explicit caller composition"
    },
    "control": {
      "kind": "element",
      "declaration": "Checkbox",
      "selector": "[data-slot=\"checkbox\"]",
      "description": "Actual span role=checkbox source root.",
      "ownership": "actual wrapper"
    },
    "indicator": {
      "kind": "element",
      "declaration": "Checkbox",
      "selector": "[data-slot=\"checkbox-indicator\"]",
      "description": "Actual checked/mixed source indicator.",
      "ownership": "actual wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "checkbox-border-width": "checkbox.borderWidth",
      "checkbox-disabled-opacity": "checkbox.disabledOpacity",
      "checkbox-focus-shadow": "checkbox.focusShadow",
      "checkbox-focus-spread": "checkbox.focusSpread",
      "checkbox-indicator-size": "checkbox.indicatorSize",
      "checkbox-radius": "checkbox.radius",
      "checkbox-size": "checkbox.size",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-destructive": "semantic.color.destructive",
      "color-primary": "semantic.color.primary",
      "color-primary-foreground": "semantic.color.primaryForeground",
      "color-ring": "semantic.color.ring",
      "control-label-gap": "semantic.layout.controlLabelGap"
    },
    "runtimeProperties": {},
    "layoutPolicy": "The source span role control has a 16px square and14px indicator. Explicit caller field layout owns8px label spacing; this wrapper is not falsely attributed to upstream. Checked/mixed/disabled/error reflect actual native/ARIA/data attributes. No separate native mixed specimen is present in the pinned page; mixed is supported by the React API. Mixed state retains checked=false as separate authority; a deliberately chosen half-indicator-width CSS minus replaces the source check glyph for the source-supported indeterminate presentation, without changing the native event/value contract.",
    "variants": {
      "checked": {
        "prop": "checked",
        "attribute": "data-checked"
      },
      "mixed": {
        "prop": "indeterminate",
        "attribute": "data-indeterminate"
      },
      "disabled": {
        "prop": "disabled",
        "attribute": "data-disabled"
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
