Skip to main content

AutoComplete

Components

AutoComplete()

AutoComplete(props, context?): ReactNode

An AutoComplete component improves the user experience by suggesting possible completions as the user types.

Parameters

ParameterType
propsAutoCompleteProps
context?any

Returns

ReactNode

Example

 <AutoComplete placeholder={'Start searching...'} options={['a','b','c']} separators={['Comma', 'Space', 'Enter']} />

Source

libs/design-system-core/src/components/AutoComplete/index.tsx:46

Props

AutoCompleteProps

AutoCompleteProps: object & Pick <TextFieldProps, "label" | "caption" | "status">

Type declaration

MemberType
customStylestring
disabledInputProps["disabled"]
multipleboolean
onChange(value) => void
onSelected({ value, index }) => void
optionsstring[]
placeholderInputProps["placeholder"]
separatorsSeparator[]
tagsSet<string>
valuestring

Source

libs/design-system-core/src/components/AutoComplete/index.tsx:14