{
  "componentId": "shadcn:Combobox",
  "projectionState": "Concrete open/client-registered instance; closed popup is unmounted or explicitly kept hidden by source Presence options.",
  "sourceRule": "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.",
  "keyboardAndFocus": "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.",
  "referenceComposition": "<label id=\"search-fruit-label\" for=\"search-fruit\">Search fruit</label><div data-slot=\"input-group\" class=\"cn-combobox-input\" role=\"group\"><input data-slot=\"input-group-control\" class=\"cn-input-group-input\" id=\"search-fruit\" aria-labelledby=\"search-fruit-label\" type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" aria-controls=\"fruit-list\" aria-activedescendant=\"fruit-banana\" aria-describedby=\"fruit-help fruit-error\" aria-invalid=\"true\" value=\"\"/><div data-slot=\"input-group-addon\" data-align=\"inline-end\"></div><button data-slot=\"combobox-trigger\" type=\"button\" tabindex=\"0\" aria-label=\"Show fruit options\" aria-haspopup=\"listbox\" aria-expanded=\"true\" aria-controls=\"fruit-list\">Show options<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\" fill=\"none\" stroke=\"currentColor\"/></svg></button></div><p id=\"fruit-help\">Type to filter available fruits.</p><p id=\"fruit-error\">Choose a listed fruit.</p><div data-slot=\"combobox-content\" class=\"cn-menu-target\" role=\"presentation\" dir=\"ltr\" style=\"--available-width:320px;--available-height:400px;--anchor-width:256px\"><div data-slot=\"combobox-empty\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"></div><div data-slot=\"combobox-list\" role=\"listbox\" aria-label=\"Fruit options\" id=\"fruit-list\"><div data-slot=\"combobox-group\" role=\"group\" aria-labelledby=\"fruit-group-label\"><div data-slot=\"combobox-label\" id=\"fruit-group-label\" aria-hidden=\"true\">Fruit options</div><div data-slot=\"combobox-item\" role=\"option\" id=\"fruit-apple\" aria-selected=\"false\">Apple</div><div data-slot=\"combobox-item\" role=\"option\" id=\"fruit-banana\" aria-selected=\"false\" data-highlighted=\"\">Banana</div><div data-slot=\"combobox-item\" role=\"option\" id=\"fruit-unavailable\" aria-selected=\"false\" aria-disabled=\"true\">Unavailable</div></div><div data-slot=\"combobox-separator\" role=\"presentation\"></div></div></div>",
  "protocol": "SCXML observes actual source callback/native transactions, retaining original eventDetails. For cmdk, SOURCE_QUERY_CHANGE observes CommandInput.onValueChange and SOURCE_HIGHLIGHT observes Command.onValueChange: same public callback name, different actual part/authority. Sends never dispatch extra DOM events. CommandDialog is the composed Dialog actor and retains its full existing lifecycle/focus/deferred-unmount contract; this machine records its open authority without reimplementing that actor. Highlight or typing is never a command invocation. Source query/filter normalization, positioning and focus remain with the real primitive.",
  "semanticParts": {
    "root": {
      "kind": "controller",
      "description": "Direct Root alias owns value/query/highlight/open; it does not create a wrapper DOM."
    },
    "input-frame": {
      "kind": "element",
      "selector": ".cn-combobox-input",
      "description": "Actual InputGroup wrapper; not the native text input."
    },
    "input": {
      "kind": "element",
      "selector": ".cn-combobox-input input[data-slot=\"input-group-control\"]",
      "description": "Actual primitive Input renders InputGroupInput; real slot belongs delegated InputGroup."
    },
    "trigger": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-trigger\"]",
      "description": "Explicit exported Trigger with chosen visible/accessible name; automatic icon trigger is not falsely renamed."
    },
    "clear": {
      "kind": "element",
      "selector": "[data-part=\"combobox-clear\"]",
      "description": "Named BaseUI Primitive.Clear composition because private shadcn Clear wrapper is not exported."
    },
    "popup": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-content\"]",
      "description": "Actual Popup is presentation for outside-input usage; query focus remains input."
    },
    "list": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-list\"]",
      "description": "Actual listbox/active-descendant context."
    },
    "item": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-item\"]",
      "description": "Actual option; highlight distinct from selected commit."
    },
    "indicator": {
      "kind": "element",
      "selector": ".cn-combobox-item-indicator",
      "description": "Actual private selected indicator."
    },
    "group": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-group\"]",
      "description": "Actual source Group."
    },
    "label": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-label\"]",
      "description": "Actual GroupLabel, not input field label."
    },
    "empty": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-empty\"]",
      "description": "Actual polite no-results output."
    },
    "separator": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-separator\"]",
      "description": "Actual source separator."
    },
    "chips": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-chips\"]",
      "description": "Actual multiple-value wrapping container."
    },
    "chip": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-chip\"]",
      "description": "Actual selected token with source keyboard behavior."
    },
    "chip-input": {
      "kind": "element",
      "selector": "[data-slot=\"combobox-chip-input\"]",
      "description": "Actual second-instance native combobox input in multiple mode."
    },
    "chip-remove": {
      "kind": "element",
      "selector": "[data-part=\"combobox-chip-remove\"]",
      "description": "Named BaseUI Primitive.ChipRemove composed with showRemove=false."
    },
    "value": {
      "kind": "controller",
      "description": "Context value renderer has no promised stable styled DOM; public value API remains source-bound."
    },
    "collection": {
      "kind": "controller",
      "description": "Collection data renderer/context; no fabricated DOM collection part."
    },
    "anchor": {
      "kind": "controller",
      "description": "Exported React ref hook for a real chosen Positioner anchor; not a DOM part."
    }
  },
  "visualStateMapping": {
    "multiple": {
      "prop": "multiple",
      "valueShape": "array"
    },
    "query": {
      "source": "inputValue/onInputValueChange distinct from selected value"
    },
    "namedAuxiliaryActions": {
      "callerProps": [
        "showTrigger=false",
        "showClear=false",
        "showRemove=false",
        "tabIndex=0"
      ]
    }
  }
}
