Migration in progress
This page is still being migrated to our new website. In the meantime, you can explore the new React Aria Components docs here. beta
useAutocompleteState
Provides state management for an autocomplete component.
Under construction
This hook is in beta. More documentation is coming soon!
useAutocompleteState(
(props: AutocompleteStateOptions
)): AutocompleteState
Properties
| Name | Type | Description |
inputValue | string | The current value of the autocomplete input. |
focusedNodeId | string | null | The id of the current aria-activedescendant of the autocomplete input. |
Methods
| Method | Description |
setInputValue(
(value: string
)): void | Sets the value of the autocomplete input. |
setFocusedNodeId(
(value: string
| | null
)): void | Sets the id of the current aria-activedescendant of the autocomplete input. |