Component
Select
Choose one or several options from a list.
Type to filter one value, including a list the parent loads asynchronously.
Type to filter one value. Arrow keys move through the list, Enter selects, and Escape closes. Pass onQueryChange when the list loads asynchronously.
A fixed list filtered as you type. Async search is a variant.
Wrap with Field. Use Select for a short fixed menu. Use Combobox when the person types to search, including when options arrive later. Command is still the command palette.
import { Combobox } from "agentic-ds-kit";From contracts/combobox.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| id | string | Yes | — | — |
| size | md | sm | lg | No | md | Heights 32 / 36 / 40, the shared Button and Input scale. |
| options | array | Yes | — | — |
| placeholder | string | No | Search | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| value | string | No | — | Controlled. Empty string is nothing selected. |
| defaultValue | string | No | — | — |
| onChange | function | No | — | (value: string) => void |
| onQueryChange | function | No | — | When set, options are not filtered locally. Parent replaces options as the query changes. |
| loading | boolean | No | false | — |
| loadingLabel | string | No | Loading | Shown with a kit Spinner while loading. |
| startLabel | string | No | — | Shown in place of the list until the person types, like Start typing to find a customer. For async search. |
| emptyLabel | string | No | No results | Shown when a query matches nothing. |
| allowCustomValue | boolean | No | false | Enter commits the typed text when nothing is highlighted. |
| name | string | No | — | — |
| ariaLabel | string | No | — | — |
| describedBy | string | No | — | — |