Async single select
const getOptions = async () => {
...
};
<AsyncSelect
value={value}
onChange={(value) => setValue(value)}
loadOptions={getOptions}
/>
Note
Props are mostly the same as for the Single select,
with the exceptions of options
(which is replaced with loadOptions
) and simpleValue
, which is not supported.
For the complete list of props, use your IDE's autocomplete functionality.