Skip to main content

SearchAutocomplete

Interfaces

SearchAutocompleteProps

Extends

  • Pick<AutocompleteProps<string, false, false, true>, Exclude<keyof AutocompleteProps<string, false, false, true>, "inputValue" | "freeSolo" | "multiple" | "autoComplete" | "loading" | "loadingText" | "noOptionsText" | "options" | "getOptionLabel" | "onInputChange" | "renderOption" | "renderInput">>

Properties

PropertyTypeDescription
autoFocus?booleanThe search form shoul focus on mount

Default
false
onClear?() => voidHandler for clear action
onSearch?(value: string) => voidHandler for search action
onSuggestionSelect?(suggestion: SCSuggestionType) => voidHandler for item select action

Functions

SearchAutocomplete()

SearchAutocomplete(inProps): Element

Parameters

ParameterType
inPropsSearchAutocompleteProps

Returns

Element

Source

packages/react-ui/src/components/SearchAutocomplete/SearchAutocomplete.tsx:75