A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete, async and creatable support.
Use the Async component to load options from a remote source as the user types.
import Async, { makeAsyncSelect } from 'react-select-oss/async';
The loadOptions prop allows users to either resolve from a callback...
inputValue: ""
or resolve from a returned promise....
The defaultOptions prop determines "when" your remote request is initially fired. There are two valid values for this property. Providing an option array to this prop will populate the initial set of options used when opening the select, at which point the remote load only occurs when filtering the options (typing in the control). Providing the prop by itself (or with 'true') tells the control to immediately fire the remote request, described by your loadOptions, to get those initial values for the Select.
Copyright © Jed Watson, 2019. MIT Licensed.