ComboboxApi: {
    open: boolean;
    setOpen: (open: boolean) => void;
    setValue: (value: string) => void;
    value: string;
}

Imperative handle returned by enhanceCombobox.

Type declaration

  • Readonlyopen: boolean

    Whether the listbox is currently expanded.

  • setOpen: (open: boolean) => void

    Expand or collapse the listbox.

  • setValue: (value: string) => void

    Commit a value: updates the input and notifies listeners.

  • Readonlyvalue: string

    The input's current text.