Active item state
ActiveIdStateinterface
Public Composite.ActiveIdState behavioral model.
InitialStateinterface
Initial Composite values. activeId defaults to null, orientation to horizontal, loop to true, RTL and virtual focus to false.
Stateinterface
Complete renderer-independent state for Composite.
StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Composite state.
makeStatefunction
Creates hydrated Composite state. activeId defaults to null, orientation to horizontal, loop to true, RTL and virtual focus to false.
DOM focus and scrolling
focusActivefunction
Focuses the registered active element unless state uses virtual focus or has no active id.
focusElementfunction
Calls an existing platform focus method inside Effect.sync and otherwise does nothing.
moveAndFocusfunction
Moves active state, then focuses and scrolls the mounted active item when virtual focus is disabled.
scrollActivefunction
Calls scrollIntoView with nearest block/inline alignment for the mounted active item.
Directional movement
Movetype-alias
Logical movement operations independent of physical key names.
MoveOptionsinterface
State, collection, and disabled-item policy consumed by Composite movement helpers.
Orientationtype-alias
Supported composite movement axes.
movefunction
Computes the next active id and updates state; collection and state failures/services are preserved in the returned Effect.
moveActiveIdfunction
Returns the id reached by first/last/next/previous with optional disabled inclusion and loop policy.
moveActiveItemfunction
Returns the full item selected by moveActiveId, or undefined when no item is reachable.
orderedEnabledItemsfunction
Sorts a copy by mounted DOM order and then removes disabled items.
Keyboard focus
activeDescendantfunction
Derives activeId only under virtual focus, otherwise undefined.
rootTabIndexfunction
Derives 0 when the root owns focus and -1 once a roving-focus item is active.
tabIndexfunction
Derives 0 only for the active item under roving focus; virtual-focus items always receive -1.
Typeahead
TypeaheadBufferinterface
Public Composite.TypeaheadBuffer behavioral model.
typeaheadfunction
Returns the first enabled item id in DOM order whose textValue starts with the query.
typeaheadFromfunction
Returns only the id selected by typeahead, or null when no item matches.
typeaheadKeyfunction
Returns an unmodified one-character key exactly as provided; modified and multi-character keys return null.
updateTypeaheadBufferfunction
Appends within the timeout window and starts a new query after the buffer expires.