A select component that allows creating new options.
Creatable Select
Select or create an option
Dependencies
None
Installation
None
Props
Name | Type | Default | Description |
---|---|---|---|
options | Option[] | [] | Array of options to display in the select. |
value | string | '' | The currently selected value. |
onChange | (value: string) => void | - | Function to call when the selected value changes. |
onCreateOption | (label: string) => void | - | Function to call when a new option is created. |
placeholder | string | '' | Placeholder text to display when no option is selected. |