{
  "format": "ui-contract-component-draft",
  "id": "shadcn:NativeSelect",
  "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": {
    "wrapper": "Actual div owns className and visual size.",
    "control": "Actual native select; platform owns popup/multiple selection.",
    "icon": "Actual aria-hidden chevron SVG.",
    "option": "Actual native option; disabled options remain native.",
    "option-group": "Actual labelled native optgroup."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "wrapper": {
      "kind": "element",
      "declaration": "NativeSelect",
      "selector": "[data-slot=\"native-select-wrapper\"]",
      "description": "Actual div owns className and visual size.",
      "ownership": "actual wrapper"
    },
    "control": {
      "kind": "element",
      "declaration": "NativeSelect",
      "selector": "[data-slot=\"native-select\"]",
      "description": "Actual native select; platform owns popup/multiple selection.",
      "ownership": "actual wrapper"
    },
    "icon": {
      "kind": "element",
      "declaration": "NativeSelect",
      "selector": "[data-slot=\"native-select-icon\"]",
      "description": "Actual aria-hidden chevron SVG.",
      "ownership": "actual wrapper"
    },
    "option": {
      "kind": "element",
      "declaration": "NativeSelectOption",
      "selector": "[data-slot=\"native-select-option\"]",
      "description": "Actual native option; disabled options remain native.",
      "ownership": "actual wrapper"
    },
    "option-group": {
      "kind": "element",
      "declaration": "NativeSelectOptGroup",
      "selector": "[data-slot=\"native-select-optgroup\"]",
      "description": "Actual labelled native optgroup.",
      "ownership": "actual wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-background": "semantic.color.background",
      "color-destructive": "semantic.color.destructive",
      "color-foreground": "semantic.color.foreground",
      "color-input": "semantic.color.input",
      "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",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "native-select-disabled-opacity": "components.native-select.disabledOpacity",
      "native-select-gap": "components.native-select.gap",
      "native-select-height": "components.native-select.height",
      "native-select-icon-size": "components.native-select.iconSize",
      "native-select-inset-block": "components.native-select.insetBlock",
      "native-select-inset-inline": "components.native-select.insetInline",
      "native-select-radius": "components.native-select.radius",
      "native-select-small-height": "components.native-select.smallHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "NativeSelect maps all five actual parts across three exports. ClassName belongs to the wrapper; source size=sm/default is a visual API and never a native numeric select size attribute. Native 36px height, 8px outer block inset, 10px inline inset, 8px gap and 8px corner are retained. CSS padding subtracts its included 1px border so the outer-edge-to-text inset stays faithful without inflating height to38px. The reference explicitly selects 32px for the source-supported compact size, with no invented native sm observation. Width is content-dependent and capped by the host. Source dir is forwarded only to the select, so the wrapper derives explicit direction from that actual child attribute; logical chevron position stays aligned even under the opposite surrounding direction. Multiple remains a true native multiple select with intrinsic platform height and no misleading single-select chevron. Option/optgroup Canvas/CanvasText follows the source system-color utility; multiple selected options explicitly retain system Highlight/HighlightText so that utility cannot erase the visible selection. Native labels, selected values, disabled options, popup/typeahead/modifiers and events remain platform-owned; no fake ARIA listbox or selection events are introduced.",
    "variants": {
      "size": {
        "prop": "size",
        "attribute": "data-size",
        "values": [
          "default",
          "sm"
        ]
      },
      "multiple": {
        "prop": "multiple",
        "nativeAttribute": "multiple"
      },
      "disabled": {
        "prop": "disabled",
        "nativeAttribute": "disabled"
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
