{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Slider",
  "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 source Root, with deliberate one-value/range array cardinality.",
    "control": "Actual private SliderPrimitive.Control, identified by the source cn-slider class.",
    "track": "Actual private Track; orientation is primitive output.",
    "range": "Actual private Indicator; position/extent are primitive inline style.",
    "thumb": "Actual source Thumb div with primitive position/translate; not the focusable control itself.",
    "input": "Actual nested native range input, with source min/max/value/keyboard behavior.",
    "field": "Caller Base UI Field.Root context; not a claim shadcn Field automatically provides this context.",
    "label": "Caller associated Field.Label.",
    "help": "Caller Field.Description registered with actual input validation context.",
    "error": "Caller Field.Error for concrete validation/recovery."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-slot=\"slider\"]",
      "description": "Actual source Root, with deliberate one-value/range array cardinality.",
      "ownership": "actual pinned wrapper"
    },
    "control": {
      "kind": "element",
      "declaration": "Slider",
      "selector": ".cn-slider",
      "description": "Actual private SliderPrimitive.Control, identified by the source cn-slider class.",
      "ownership": "actual pinned wrapper"
    },
    "track": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-slot=\"slider-track\"]",
      "description": "Actual private Track; orientation is primitive output.",
      "ownership": "actual pinned wrapper"
    },
    "range": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-slot=\"slider-range\"]",
      "description": "Actual private Indicator; position/extent are primitive inline style.",
      "ownership": "actual pinned wrapper"
    },
    "thumb": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-slot=\"slider-thumb\"]",
      "description": "Actual source Thumb div with primitive position/translate; not the focusable control itself.",
      "ownership": "actual pinned wrapper"
    },
    "input": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-slot=\"slider-thumb\"]>input[type=\"range\"]",
      "description": "Actual nested native range input, with source min/max/value/keyboard behavior.",
      "ownership": "actual pinned wrapper"
    },
    "field": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-part=\"slider-field\"]",
      "description": "Caller Base UI Field.Root context; not a claim shadcn Field automatically provides this context.",
      "ownership": "caller composition"
    },
    "label": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-part=\"slider-label\"]",
      "description": "Caller associated Field.Label.",
      "ownership": "caller composition"
    },
    "help": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-part=\"slider-help\"]",
      "description": "Caller Field.Description registered with actual input validation context.",
      "ownership": "caller composition"
    },
    "error": {
      "kind": "element",
      "declaration": "Slider",
      "selector": "[data-part=\"slider-error\"]",
      "description": "Caller Field.Error for concrete validation/recovery.",
      "ownership": "caller composition"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-destructive": "semantic.color.destructive",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "color-primary": "semantic.color.primary",
      "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",
      "palette-white": "palette.white",
      "slider-radius": "components.slider.radius",
      "slider-thumb-size": "components.slider.thumbSize",
      "slider-track-size": "components.slider.trackSize",
      "slider-vertical-size": "components.slider.verticalSize"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Native track 4px/thumb 12px and full track corner are reusable visual roles; fixed native 100/140/320px track examples are not runtime widths. Thumb uses native fixed white surface and ring role; primitive inline position, translate, range percentage and clipping remain authoritative. Static edge-alignment fixtures use the equivalent thumb-size/available-travel calculation rather than a misleading center-aligned raw percentage. The hidden native range input remains the actual focus/keyboard control; parent :has(input:focus-visible) displays the ring without inventing a second slider role. This reference uses explicit arrays: raw wrapper creates two Thumb instances for scalar props, a documented limitation. It uses Root format unit=percent so single/range native value text conveys units and source start/end range suffixes. Root aria-labelledby is propagated, but Root aria-describedby is not a Thumb prop: actual Base UI Field.Root/Label/Description/Error context supplies the native input help/error instead. These primitives are explicit caller composition, not behavior attributed to the presentation-only shadcn Field. Both HTML dir and actual DirectionProvider are necessary for RTL primitive geometry/keys. True vertical Slider is forwarded by this wrapper and uses a selected 160px extent. Source stepping, Home/End/Page/Shift behavior, array collision policy, disabled input Tab order, candidate cancellation and separate committed callbacks remain unchanged.",
    "variants": {
      "orientation": [
        "horizontal",
        "vertical"
      ],
      "cardinality": "Explicit arrays; scalar wrapper quirk retained",
      "thumbAlignment": "Source default edge; source props may override"
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
