Skip to content

FormCombobox ​

A text field with a list of options (role combobox and listbox), filtered while typing without caring for case or accents. Options can come from a server and values can be created.

ts
import { FormCombobox } from '@zairakai/vue-components/Form'

Usage ​

vue
<FormCombobox />

Example ​

Value: none

vue
<script setup>
  import { ref } from 'vue'

  const fruit = ref('')
  const fruits = ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry']
</script>

<template>
  <FormCombobox
    v-model="fruit"
    :options="fruits"
    label="Fruit"
    placeholder="Type to filter"
  />
  <p>Value: {{ fruit || 'none' }}</p>
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
namestring
formstring
optionsarray|object() => []Strings, { value, label, disabled } objects or a { value: label } object.
modelValuestring|arrayundefinedThe chosen value, or the array of values when multiple.
multiplebooleanfalse
labelstring
placeholderstring
requiredbooleanfalse
disabledbooleanfalse
remotebooleanfalseThe options come from a server: they are not filtered here, listen to the search event.
loadingbooleanfalse
creatablebooleanfalseAllow a value that is not in the options (tags).
emptyTextstring'No result'
removeLabelstring'Remove'

Events ​

NameDescription
update:modelValue
search
open
close

Slots ​

NameDescription
option

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.