options | UseTypeaheadOptions | — | Configuration object. |
options.getItemLabels | () => ReadonlyArray<string | null | undefined> | — | Returns the item labels in DOM order. A null or empty entry marks a non-matchable slot and keeps indices aligned with the caller's items. |
options.onMatch | (index: number) => void | — | Called with the index of the matched item so the caller can focus or select it; typically useListFocus's focusItem. |
options.getCurrentIndex | () => number | () => -1 | The index to search from, usually the focused item, so repeated presses of one letter cycle through matches. A negative value means nothing is current. |
options.resetMs | number | 750 | Milliseconds of inactivity after which the typed buffer resets. |
options.isDisabled | (index: number) => boolean | — | Whether an index should be skipped, e.g. disabled items. |