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

AsyncSelect

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

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

Examples

Default Example using a Promise

Select...

Example using a Callback

Select...

Example using isMulti

Select...

Example using defaultValue

Strawberry

Example without using debounce method

Strawberry