Combobox
Searchable select — type to filter options, or type a value not in the list when allowCustom is set.
ComboboxOption
| Type |
Name |
Description |
| string |
label |
Text shown in the list. |
| string |
value |
Value stored when this option is selected. |
Props
| Type |
Name |
Description |
| ComboboxOption[] |
options |
The list to search/select from. |
| string |
value? |
Bindable selected value. |
| string |
placeholder? |
Placeholder before a value is selected. |
| string |
searchPlaceholder? |
Placeholder inside the search input. |
| string |
emptyText? |
Shown when no option matches the search. |
| boolean |
allowCustom? |
Accept a typed value not present in options. |
| string |
class? |
Extra class(es) for the trigger. |
| string |
name? |
Name for an associated hidden form input. |
| string |
id? |
ID for the trigger button. |
Live example