Editable input
Inputfunction
Renders the native combobox input, keeps its value property synchronized, opens on focus, and handles Arrow, Enter, and Escape when a collection is supplied.
InputOptionsinterface
Inputs accepted by Combobox.Input in addition to the shared DOM host options.
Query and popup state
InitialStateinterface
Initial Combobox values. value defaults to an empty string, open to false, activeId to null, loop to true, and virtual focus is enabled.
Stateinterface
Editable query text, popup visibility, and the active suggestion identity.
valuecan contain unmatched text; active suggestion focus does not validate a domain choice.StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Combobox state.
makeStatefunction
Creates hydrated Combobox state. value defaults to an empty string, open to false, activeId to null, loop to true, and virtual focus is enabled.
setValuefunction
Stores the input value, clears activeId, and opens the popup in one state update.
Suggestion popup
Popoverfunction
Renders manual-popover listbox content, mirrors native toggle events into open state, and scrolls the selected option when opened.
PopoverOptionsinterface
Inputs accepted by Combobox.Popover in addition to the shared DOM host options.
Suggestion registration
makeCollectionvariable
Creates a scoped Collection for Combobox items.
Suggestions
Itemfunction
Renders and optionally registers one option; disabled options expose aria-disabled and do not select on click.
ItemOptionsinterface
Inputs accepted by Combobox.Item in addition to the shared DOM host options.