Edit page
Home
Getting Started
Components
Forms
AddressSmartInputAsyncCreatableSelectPropsExamplesAsyncSelectCheckboxCreatableSelectCurrencyInputDropzoneDropzoneImagesFormErrorFormLabelImageCropInputGroupNumberInputPasswordInputPhoneInputRadioSelectSliderInputTextInputTextMaskInputTextareaToggle
Typography
Utilities
Visualization Components

AsyncCreatableSelect

A select component that supports multiple values. This is a proxy for the react-select component with some default styles applied. This component accepts all prop types that the react select component has. For more information, see the docs here.

Note that SelectInput requires a unique name as string to be set to make server-side-rendering work.

See https://github.com/JedWatson/react-select/pull/1105 for details

Props

className
String
[Empty string]
components
Shape
{}
debounce
Bool
true
debounceWait
Number
300
defaultValue
Array<{ "label": "string", "value": "any" }> │ number │ string
disabled
Bool
false
error
Bool
false
isClearable
Bool
isMulti
Bool
false
loadOptions
Func
name
String
required
onChange
Func
required
onQueryChange
Func
null
options
Array<{ "label": "string", "value": "any" }>
placeholder
String
"Select..."
value
Array<{ "label": "string", "value": "any" }> │ number │ string

Examples

Default Example

Select...

Example using isMulti

Select...

Example using isMulti and defaultValue

Watermelon

Default without debounce

Select...