{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Label",
  "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": {
    "label": "Native label; caller supplies htmlFor/target ID.",
    "field": "Optional caller-owned field arrangement and disabled presentation context."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "input": {
      "component": "../input/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "label": {
      "kind": "element",
      "declaration": "Label",
      "selector": "[data-slot=\"label\"]",
      "description": "Native label; caller supplies htmlFor/target ID.",
      "ownership": "actual wrapper"
    },
    "field": {
      "kind": "element",
      "declaration": "Label",
      "selector": "[data-part=\"label-field\"]",
      "description": "Optional caller-owned field arrangement and disabled presentation context.",
      "ownership": "caller composition"
    }
  },
  "visualContract": {
    "tokens": {
      "color-foreground": "semantic.color.foreground",
      "control-label-gap": "semantic.layout.controlLabelGap",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "font-weight-medium": "semantic.typography.mediumWeight",
      "label-disabled-opacity": "components.label.disabledOpacity",
      "line-height-body": "semantic.typography.bodyLineHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Label is the actual native label wrapper, not an inferred FieldLabel primitive or automatic ARIA association. The source Label page itself depicts a FieldLabel instance from the same kit; its20px row and8px gap support the shared14/20px medium text and8px arrangement role. Optional field spacing and disabled opacity are explicitly caller context; no disabled prop is invented for Label. The host must bind htmlFor to a real labelable control and disable that control separately. Source instance widths are not runtime label widths. Logical layout supports RTL.",
    "variants": {
      "disabledContext": {
        "callerAttribute": "data-disabled",
        "publicProp": false
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
