AutoSuggestProps Interface
Deprecated in 4.16.0. Props of deprecated AutoSuggest component.
Properties for the AutoSuggest component.
Extends
- React.InputHTMLAttributes<HTMLInputElement>
- CommonProps
Properties
| Name | Type | Description | |
|---|---|---|---|
| getLabel | (value: string) => string | undefined | Gets a label associated with a given value | |
| getSuggestions | AsyncGetAutoSuggestDataFunc | undefined | Asynchronously calculate suggestions for any given input value. | |
| onInputFocus | (e: React.FocusEvent<HTMLInputElement, Element>) => void | undefined | Handler for input receiving focus. | |
| onPressEnter | (e: React.KeyboardEvent<HTMLInputElement>) => void | undefined | Handler for Enter key. | |
| onPressEscape | (e: React.KeyboardEvent<HTMLInputElement>) => void | undefined | Handler for Escape key. | |
| onPressTab | (e: React.KeyboardEvent<HTMLInputElement>) => void | undefined | Handler for Tab key. | |
| onSuggestionsClearRequested | () => void | undefined | Called every time you need to clear suggestions. | |
| onSuggestionSelected | (selected: AutoSuggestData) => void | Handler for when suggested selected. | |
| options | AutoSuggestData[] | GetAutoSuggestDataFunc | Options for dropdown. | |
| setFocus | boolean | undefined | Indicates whether to set focus to the input element | |
| value | string | undefined | Optional input value override. | 
Inherited properties
| Name | Type | Inherited from | Description | 
|---|---|---|---|
| itemId Inherited | string | undefined | CommonProps | Optional unique identifier for item. | 
Defined in
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.