Command
Searchable command menu for quick actions.
Choose one or several options from a list.
Choose from a list. Field trigger, kit DropdownMenu panel. multiple for several values. searchable for a long fixed list. Not a native select.
A medium Select with a placeholder until you pick a fruit. Multiple, tags, checkboxes, and search are variants.
Wrap with Field. Use multiple for several values in a menu. searchable for a long fixed list. Typed or async search is Combobox. Tags with an inline filter are MultiSelect. Do not invent SelectTrigger or SelectContent.
Choose one or several options from a list. Field trigger, kit DropdownMenu panel. Not a native select.
import { Select } from "agentic-ds-kit";From contracts/select.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 |
|---|---|---|---|---|
| describedBy | string | No | — | Id(s) for aria-describedby on the trigger button. Field passes its hint or error id. |
| id | string | Yes | — | — |
| size | md | sm | lg | No | md | Heights match Input and Button: sm 32, md 36, lg 40. Use one size per row; lg for forms below 480px. |
| options | array | Yes | — | — |
| disabled | boolean | No | false | — |
| error | boolean | No | false | — |
| multiple | boolean | No | false | Several values. Menu stays open. Checks each pick. Trigger lists labels. A field of tags with an inline filter is MultiSelect. |
| placeholder | string | No | — | Shown until a value is picked. Muted field text. When set and no defaultValue, start empty. |
| defaultValue | string | string[] | No | — | string when single, string[] when multiple |
| value | string | string[] | No | — | controlled |
| onChange | function | No | — | (value: string | string[]) => void |
| name | string | No | — | — |
| ariaLabel | string | No | — | When there is no Field label, such as a DataTable Cell. |
| itemCheck | check | checkbox | No | check | checkbox composes kit Checkbox in the menu when multiple. Visual only. Not DropdownMenuCheckboxItem. |
| maxVisible | number | No | — | When multiple and selected count exceeds this, the trigger shows the first labels (or Tags) plus a kit Badge +N. Omit to show all. |
| valueDisplay | text | tags | No | text | multiple only. text lists labels in the trigger. tags shows each pick as a removable kit Tag (sm Select: Tag sm; md: Tag md) that wraps onto more lines. Removing a Tag deselects that value without opening the menu. maxVisible still caps Tags with the +N Badge. Each Tag leads with the option's avatar (named by label; presence, shape and initials stay on the rows) or dot; avatar wins. Option icon is not shown on Tags. |
| searchable | boolean | No | false | Kit Input at the top of the panel. Filters option labels. For a long fixed list. Not Command. |
Searchable command menu for quick actions.
Actions or value menu from a button, field, or nav trigger.
Choose exactly one option from a small visible set.
Type to filter one value, including a list the parent loads asynchronously.