{
  "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:187"
  },
  "stories": [
    {
      "id": "figma-1952-1632",
      "name": "ComboboxChip / Dir=LTR, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1952:1632",
        "part": "1952:1633"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1952-1631",
      "name": "ComboboxChip / Dir=LTR, State=Disabled",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1952:1631",
        "part": "1952:1633"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2540",
      "name": "ComboboxChip / Dir=RTL, State=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2540",
        "part": "1952:1633"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2543",
      "name": "ComboboxChip / Dir=RTL, State=Disabled",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2543",
        "part": "1952:1633"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2535",
      "name": "ComboboxItem / State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2535",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2533",
      "name": "ComboboxItem / State=Hover, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2533",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2534",
      "name": "ComboboxItem / State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2534",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2591",
      "name": "ComboboxItem / State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2591",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2598",
      "name": "ComboboxItem / State=Hover, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2598",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1953-2605",
      "name": "ComboboxItem / State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1953:2605",
        "part": "1953:2539"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1961-1117",
      "name": "ComboboxList / Type=Default",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1961:1117",
        "part": "1961:1118"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1961-1116",
      "name": "ComboboxList / Type=Seperator",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1961:1116",
        "part": "1961:1118"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1961-1114",
      "name": "ComboboxList / Type=Search",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1961:1114",
        "part": "1961:1118"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1961-1115",
      "name": "ComboboxList / Type=Label",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1961:1115",
        "part": "1961:1118"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1954-2618",
      "name": "ComboboxLabel / Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1954:2618",
        "part": "1970:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1970-1344",
      "name": "ComboboxLabel / Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1970:1344",
        "part": "1970:1343"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2215-1321",
      "name": "ComboboxLabel / Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2215:1321",
        "part": "2215:1320"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2215-1323",
      "name": "ComboboxLabel / Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2215:1323",
        "part": "2215:1320"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "query-versus-highlight-versus-selection-or-command",
      "expected": "Combobox is a direct alias of ComboboxPrimitive.Root. Its generic selected value/defaultValue and onValueChange are distinct from inputValue/defaultInputValue/onInputValueChange, highlight and open callbacks. multiple changes values to arrays. Root items supplies filtering/Collection/Empty; default filtering is source locale-aware matching, autoHighlight=false, modal=false, and query changes alone do not commit a value. filteredItems/filter=null support explicit caller filtering; object values use itemToStringLabel/itemToStringValue and Object.is comparison unless overridden. Root autoComplete is a browser autofill hint (mapped to formAutoComplete), not the internal list/inline autocompletion mode. Input wraps the actual primitive input in InputGroup, defaults showTrigger=true/showClear=false and disabled=false; Content defaults bottom/start, offsets6/0 with optional anchor. List is listbox, Item is option, and virtual focus remains on input via aria-activedescendant. Empty requires Root items and keeps a polite status element mounted while changing its children. Group/Collection/Separator and useComboboxAnchor are concrete public parts. In multiple mode an accepted item press stays open when not filtering; filtering with input outside the popup closes it, while input-inside-popup clears the query with input-clear/isItemPress details. Multiple mode uses Chips/Chip/ChipsInput and source chip keyboard/removal behavior; showRemove defaults true. The private icon-only Clear/automatic trigger and automatic chip-remove wrappers expose no instance-specific label props. The chosen reference sets showTrigger=false/showClear=false and showRemove=false, composing explicitly named exported Trigger and named Base UI Clear/ChipRemove where needed. These are transparent caller compositions, not fictitious new shadcn exports. The reference opts auxiliary actions into native Tab order with explicit tabIndex=0; their source defaults are -1. Disabled/readOnly block value edits but readOnly still allows popup browsing. A canceled Combobox item-selection transaction returns before its dependent close, unlike Select which separately requests closing. Clearing selected/query state and popup dismissal use distinct cancellable source callback transactions; host-controlled props remain authoritative."
    },
    {
      "id": "keyboard-disabled-and-escape",
      "expected": "Input retains native editing, IME and selection. Arrow navigation highlights options virtually without moving DOM focus out of the input; disabled items cannot commit. Enter selects the highlighted item. Escape while the popup is open dismisses without committing highlighted arbitrary text. Crucially, Escape when the popup is already unmounted requests clearing both query and selected value (null in single mode or [] in multiple), unless disabled/readOnly; the same source details object carries that closed-Escape transaction. Any query reset and selected clear retain their own actual callback/prop authority. Named Clear/ChipRemove use actual primitive removal and return focus as prescribed by source. Multiple chips support source arrow/backspace/delete navigation, not six fake textboxes. No required asynchronous loading, validation or network success is inferred from static artwork."
    },
    {
      "id": "independent-cancellation-and-controlled-props",
      "expected": "Each applicable actual callback preserves its own authority; canceling value need not cancel independent popup closing."
    },
    {
      "id": "named-native-instance",
      "html": "accessibility.html"
    }
  ]
}
