A select component that loads options asynchronously.
Async Select
Dependencies
None
Installation
None
Props
Name | Type | Default | Description |
---|---|---|---|
loadOptions | () => Promise<Option[]> | - | Function to load options asynchronously. |
value | string | '' | The currently selected value. |
onChange | (value: string) => void | - | Function to call when the selected value changes. |
placeholder | string | '' | Placeholder text to display when no option is selected. |