Combobox
Basic combobox
With v-model
Selected: (none)
Appearance
Sizes
With prefix icon
States
Filtering
Scrollable list (many options)
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | string | undefined | undefined | Selected value |
| options | FuiComboboxOption[] | required | Combobox options |
| placeholder | string | '' | Placeholder text |
| disabled | boolean | false | Disabled state |
| invalid | boolean | false | Error state |
| size | 'small' | 'medium' | 'large' | 'medium' | Component size |
| appearance | 'outline' | 'underline' | 'filled-darker' | 'filled-lighter' | 'outline' | Visual appearance |
| clearable | boolean | false | Show clear button when selected |
| freeform | boolean | false | Allow arbitrary text input |
| openOnFocus | boolean | true | Open dropdown on input focus |
| openOnClick | boolean | true | Open dropdown on input click |
FuiComboboxOption
| Prop | Type | Description |
|---|---|---|
| value | string | Option value |
| label | string | Display label |
| disabled? | boolean | Option disabled |
Events
| Event | Payload | Description |
|---|---|---|
| update:modelValue | string | undefined | Emitted when selection changes |