useAutocompleteState
Provides state management for an autocomplete component.
install | yarn add @react-stately/autocomplete |
---|---|
version | 3.0.0-beta.0 |
usage | import {useAutocompleteState} from '@react-stately/autocomplete' |
Under construction
API#
useAutocompleteState(
(props:
)):
Interface#
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. |