{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "73:2895"
  },
  "stories": [
    {
      "id": "figma-2013-281",
      "name": "SliderThumb / State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2013:281",
        "part": "2013:282"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2013-280",
      "name": "SliderThumb / State=Hover/Focus",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2013:280",
        "part": "2013:282"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2015-428",
      "name": "SliderTrack / Orientation=Horizontal",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2015:428",
        "part": "2015:429"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2015-427",
      "name": "SliderTrack / Orientation=Vertical",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2015:427",
        "part": "2015:429"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2015-433",
      "name": "SliderRange / Orientation=Horizontal",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2015:433",
        "part": "2015:434"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2015-432",
      "name": "SliderRange / Orientation=Vertical",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2015:432",
        "part": "2015:434"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "actual-source-selection",
      "expected": "Root accepts scalar or array value/defaultValue, min0/max100, step1, largeStep10, orientation horizontal|vertical, disabled/name/form, minStepsBetweenValues and thumbCollisionBehavior push|swap|none. Wrapper thumbAlignment defaults edge but {...props} can override it. onValueChange has cancellable ChangeEventDetails with reason and activeThumbIndex; onValueCommitted has generic CommitEventDetails and only reports a changed, uncanceled commit. Source quantizes/clamps pointer/keyboard changes and enforces range collision policy. IMPORTANT wrapper quirk: thumb count is array value length, else array defaultValue length, else2; scalar props still create two Thumb instances. This reference explicitly uses value={[40]} for one thumb and arrays for ranges. Wrapper does not expose per-thumb naming/index props; Root aria-labelledby is propagated through primitive context to its internal range inputs."
    },
    {
      "id": "keyboard-focus-versus-commit",
      "expected": "The actual focusable controls are native input type=range nested inside thumb divs. Arrow keys step, PageUp/PageDown and Shift+arrows use largeStep, Home/End choose limits; horizontal direction respects RTL, vertical Up increases. Disabled inputs leave Tab order. Pointer drag/track press and keyboard changes have distinct change/commit lifecycle; Escape does not restore an earlier committed value. Range thumbs retain DOM order with collision policy owned by the primitive. This reference provides finite min<max and positive step, a shared explicit label and described units."
    },
    {
      "id": "canceled-and-controlled-authority",
      "expected": "Candidate callback preserves exact source details; canceled request or controlled props do not autonomously change public value."
    },
    {
      "id": "native-instance-naming",
      "html": "accessibility.html"
    }
  ]
}
