Menus / Command

Command

<Command />Stable

Keyboard-driven command palette (à la Linear, VS Code). Pairs with CommandDialog to open as an overlay with ⌘K. Built on cmdk.

import { Command, CommandInput, CommandList, CommandGroup, CommandItem } from "@/components/upnext";

Variants

<Command>
<CommandInput placeholder="Type a command or search…" />
<CommandList>
<CommandEmpty>No results.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem><Search /> Search recruits</CommandItem>
<CommandItem><FilePlus /> New recruit</CommandItem>
</CommandGroup>
</CommandList>
</Command>

Source

The wrapper is a thin re-export; the actual styling lives in the shadcn primitive.