Select
Choose one or several options from a list.
Actions or value menu from a button, field, or nav trigger.
Actions from a kit Button. Select is a form list. Command is searchable in a Modal.
One component. Groups and items are data. No Trigger, Content, or Item cousins.
Act on one thing, up to about ten actions, from a button, ⋯ or nav item. Rows follow size: sm 28px for dense tables, md 32px by default, lg 40px. It opens 4px below, flips above when there is more room there, and caps its height at the screen minus 16px. Type a letter to jump to an item. If people type to find it, use Command; if they pick a value to save, use Select. Do not add Trigger or Item cousins.
import { DropdownMenu } from "agentic-ds-kit";From contracts/dropdownmenu.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 |
|---|---|---|---|---|
| triggerDraggable | boolean | No | — | Makes the trigger button a drag source (TreeView rows use it). |
| onTriggerDragStart | function | No | — | (event: DragEvent<HTMLButtonElement>) => void on the trigger. |
| onTriggerDragEnd | function | No | — | (event: DragEvent<HTMLButtonElement>) => void on the trigger. |
| id | string | No | — | Trigger id for Field htmlFor |
| disabled | boolean | No | false | — |
| error | boolean | No | false | Field and Select composition |
| describedBy | string | No | — | Field wires hint and error ids onto the trigger |
| trigger | string | No | — | Kit Button label. Omit for icon-only; then ariaLabel is required. |
| iconStart | KitIcon | No | — | Icon on the kit Button. A curated Lucide name (PascalCase or kebab-case) renders instantly; any other Lucide name needs import "agentic-ds-kit/icons-on-demand" once (otherwise it is skipped with a dev warning). Or pass the Lucide component (Plus) or an element. |
| ariaLabel | string | No | — | required when trigger is omitted |
| appearance | solid | outline | soft | ghost | No | outline | — |
| mode | primary | neutral | danger | No | neutral | — |
| size | lg | md | sm | No | md | — |
| align | start | end | No | — | Default start; end for triggerStyle avatar and account. |
| groups | array | Yes | — | — |
| header | object | No | — | Top of the panel, outside the menu list, not focusable. kit Avatar (md) when avatar is set, name, secondary line (e.g. email), kit Badge (neutral) for a plan. Leave out avatar for a text-only header such as a plan line. The menu is aria-describedby the header. |
| footer | object | No | — | Foot of the panel under a full-width divider. action is a full-width kit Button (outline neutral sm) with role=menuitem, last in arrow order; selecting it calls onSelect(id) (e.g. Sign out). meta is one quiet caption line outside the menu list (e.g. a version); the menu is aria-describedby it. |
| triggerAccount | object | No | — | Required for triggerStyle avatar and account. The avatar trigger is named by ariaLabel, else the name plus the presence word. |
| open | boolean | No | — | controlled |
| onOpenChange | function | No | — | (open: boolean) => void |
| onSelect | function | No | — | (id: string) => void |
| triggerStyle | button | field | nav | avatar | account | No | button | button is kit Button. field is a full-width control with ChevronsUpDown. Select uses field. nav is a ghost text control with ChevronDown; NavigationMenu uses nav. avatar is a round button around kit Avatar (sm); account is a full-width card with Avatar (sm), name, secondary line and ChevronsUpDown. Both read triggerAccount and default align to end. |
| iconEnd | KitIcon | No | — | Icon on a field trigger (default ChevronsUpDown) or kit Button trigger. A curated Lucide name (PascalCase or kebab-case) renders instantly; any other Lucide name needs import "agentic-ds-kit/icons-on-demand" once (otherwise it is skipped with a dev warning). Or pass the Lucide component (Plus) or an element. |
| columns | enum | No | 1 | 2 uses a CSS grid panel, min-width 28rem. 1 stays a list. |
| closeOnSelect | boolean | No | true | false keeps the menu open. Select multiple uses false. |
| triggerMuted | boolean | No | false | Muted field trigger text for a placeholder. |
| triggerBadge | string | No | — | Kit Badge on a field trigger next to the label, e.g. +2. Select overflow uses this. |
| triggerTags | array | No | — | Field trigger only. Removable kit Tags in a field wrapper beside the trigger button (not inside it); the button fills the field behind them. Empty array shows the trigger text as a muted placeholder. Select valueDisplay=tags uses this. |
| onTriggerTagRemove | function | No | — | (id: string) => void. Does not open the menu. |
| triggerLeading | object | No | — | Field trigger only, not with triggerTags. One mark before the label, aria-hidden: avatar wins, then dot, then icon. Avatar sm (24) at sm and md, md (32) at lg. A presence word joins the trigger name as hidden text. Select sets it from the single picked option. |
| searchable | boolean | No | false | Kit Input at the top of the panel. Filters item labels. Select searchable uses this. |
| searchPlaceholder | string | No | Search | — |