Skip to content
Eskais UI

Forms

Combobox

UI SDK Combobox: a filtering input with clear and trigger buttons and a popup list. Works inside Field; agents choose by label.

Example

Installation

npx shadcn@latest add @eskais/combobox
npm packageslucide-react

Usage

Import
import {  Combobox,  ComboboxClear,  ComboboxContent,  ComboboxControl,  ComboboxEmpty,  ComboboxGroup,  ComboboxGroupLabel,  ComboboxInput,  ComboboxItem,  ComboboxItemIndicator,  ComboboxList,  ComboboxSeparator,  ComboboxTrigger,  createComboboxController,} from "@/components/ui/combobox"

API reference

Combobox

Takes ComboboxProps<T, Multiple>.

ComboboxControl

Takes <div> attributes and render.

ComboboxTrigger

PropTypeDefault
tooltipControlTooltipOption–

Also takes every prop of UI SDK ComboboxTrigger.

ComboboxClear

PropTypeDefault
tooltipControlTooltipOption–

Also takes every prop of UI SDK ComboboxClear.

ComboboxItemIndicator

Takes every prop of UI SDK ComboboxItemIndicator.

Other exports

ComboboxGroupComboboxListcreateComboboxControllertype ComboboxControllertype ComboboxItemStatetype ListDatatype ComboboxProps

Accessibility

  • A filtering input with listbox semantics: the highlight moves with arrow keys while focus stays in the input.
  • Clear and trigger buttons need their own names.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.