Field
One labeled control with optional hint and an error or success message.
Searchable command menu for quick actions.
Searchable command menu for quick actions.
Kit Button opens kit Modal with Command. ⌘K or Ctrl+K toggles it. No CommandDialog.
Command is the list. A kit Button or ⌘K opens it in a kit Modal, so it never flips or floats. Rows are 40px with the same anatomy as DropdownMenu. If people type to find it, use Command. If they act on one thing, use DropdownMenu. If they pick a value to save, use Select.
import { Command } from "agentic-ds-kit";From contracts/command.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 |
|---|---|---|---|---|
| placeholder | string | No | Type a command or search... | — |
| empty | string | No | No results found. | — |
| groups | array | Yes | — | Each group has optional heading and a required items array. Item icon: 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. Recent items are a plain group with heading "Recent". |
| onSelect | function | No | — | (id: string) => void |
| label | string | No | Command menu | Accessible name on the combobox input |
| loading | boolean | No | false | Async results on the way: a kit Spinner row and aria-busy on the list. Items already passed stay visible. |
| onAsk | function | No | — | (query: string) => void. Adds an Ask Chat row (MessageCircle) at the foot of the list and in the empty state. |
One labeled control with optional hint and an error or success message.
Choose one or several options from a list.
Actions or value menu from a button, field, or nav trigger.
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).