Command

Composable command menu primitives over cmdk.

Command is the raw cmdk primitive set (shadcn Command parity) — build palettes, inline command lists, or comboboxes. CommandPalette is the opinionated ⌘K dialog built on the same engine.

Installation

import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "@iammikz/srui";

Usage

Exports

ExportNotes
CommandRoot container (border + popover surface)
CommandInputSearch input with leading icon
CommandListScrollable list (max-h-64)
CommandEmptyRendered when filtering matches nothing
CommandGroupheading label; [data-cmdk-group-heading] styled
CommandItemvalue (filter key), onSelect, disabled
CommandShortcut / CommandSeparatorTrailing hint / divider
CommandDialogThe primitives inside a Dialog (title prop for a11y)

Filtering is cmdk's fuzzy match over value (falls back to the item text). Keyboard: arrows move, Enter selects, Escape closes (in CommandDialog).