# createCombobox API

> Auto-generated API reference for `createCombobox` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/create-combobox

## Related

- https://0.vuetifyjs.com/composables/forms/create-combobox
- https://0.vuetifyjs.com/composables/selection/create-selection
- https://0.vuetifyjs.com/composables/system/use-virtual-focus
- https://0.vuetifyjs.com/components/forms/combobox

## Functions

### createCombobox

Creates a combobox context that orchestrates selection, popover, virtual
focus, and adapter-based filtering into a single coordinated state.

```ts
(options?: ComboboxOptions) => ComboboxContext
```

### createComboboxContext

Creates a combobox context with dependency injection support.

```ts
(_options?: ComboboxOptions & { namespace?: string; }) => ContextTrinity<ComboboxContext>
```

### useCombobox

Injects the current combobox context from a parent provider.

```ts
(namespace?: string) => ComboboxContext
```

## Options

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `multiple` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | — |
| `mandatory` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | — |
| `disabled` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | — |
| `strict` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | — |
| `error` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | — |
| `errorMessages` | `MaybeRefOrGetter<MaybeArray<string> \| undefined>` | — | no | — |
| `adapter` | `ComboboxAdapter \| undefined` | — | no | — |
| `displayValue` | `((value: unknown) => string) \| undefined` | — | no | — |
| `id` | `string \| undefined` | — | no | — |
| `name` | `string \| undefined` | — | no | — |
| `form` | `string \| undefined` | — | no | — |

## Methods

| Name | Type | Description |
|---|---|---|
| `open` | `() => void` | — |
| `close` | `() => void` | — |
| `toggle` | `() => void` | — |
| `select` | `(id: ID) => void` | — |
| `clear` | `() => void` | — |

## Properties

| Name | Type | Description |
|---|---|---|
| `selection` | `SelectionContext<import("/home/runner/work/0/0/packages/0/src/composables/createSelection/index").SelectionTicketInput<unknown>, import("/home/runner/work/0/0/packages/0/src/composables/createSelection/index").SelectionTicket<import("/home/runner/work/0/0/packages/0/src/composables/createSelection/index").SelectionTicketInput<unknown>>>` | — |
| `popover` | `PopoverReturn` | — |
| `cursor` | `VirtualFocusReturn` | — |
| `query` | `ShallowRef<string>` | — |
| `display` | `Readonly<Ref<string, string>>` | — |
| `pristine` | `ShallowRef<boolean>` | — |
| `filtered` | `Ref<Set<ID>, Set<ID>>` | — |
| `isEmpty` | `Ref<boolean, boolean>` | — |
| `isLoading` | `ShallowRef<boolean>` | — |
| `isOpen` | `ShallowRef<boolean>` | — |
| `id` | `string` | — |
| `inputId` | `string` | — |
| `listboxId` | `string` | — |
| `descriptionId` | `string` | — |
| `errorId` | `string` | — |
| `hasDescription` | `ShallowRef<boolean>` | — |
| `hasError` | `ShallowRef<boolean>` | — |
| `errors` | `Readonly<Ref<string[], string[]>>` | — |
| `isValid` | `Readonly<Ref<boolean \| null, boolean \| null>>` | — |
| `inputEl` | `ShallowRef<HTMLElement \| null>` | — |
| `multiple` | `boolean` | — |
| `strict` | `MaybeRefOrGetter<boolean>` | — |
| `disabled` | `MaybeRefOrGetter<boolean>` | — |
| `name` | `string \| undefined` | — |
| `form` | `string \| undefined` | — |
