AutoComplete
Components
AutoComplete()
AutoComplete(
props
,context
?):ReactNode
An AutoComplete component improves the user experience by suggesting possible completions as the user types.
Parameters
Parameter | Type |
---|---|
props | AutoCompleteProps |
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
Member | Type |
---|---|
customStyle | string |
disabled | InputProps ["disabled" ] |
multiple | boolean |
onChange | (value ) => void |
onSelected | ({ value, index } ) => void |
options | string [] |
placeholder | InputProps ["placeholder" ] |
separators | Separator [] |
tags | Set <string > |
value | string |
Source
libs/design-system-core/src/components/AutoComplete/index.tsx:14