A flexible and beautiful Select Input control for ReactJS with multiselect, autocomplete, async and creatable support.
import Creatable, { makeCreatableSelect } from 'react-select-oss/creatable';
For the prop definition, please see the API docs here
This example uses the
onCreateOption
prop to handle new options.
To simulate waiting for a back-end service to create a new option, the input is disabled for a second before the new option is added to the list and the value is updated.
This example uses the combined async + creatable variant, imported from
react-select-oss/async-creatable
Copyright © Jed Watson, 2019. MIT Licensed.