Jump to a page or a component.
Filterable command list; wrap in CommandDialog for a palette.
No install — ask an AI agent to copy this component from registry.json, then pnpm add cmdk.
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "@/components/ui/command";The props worth knowing. Everything else passes straight through to the underlying element, including className, which is merged last so it always wins.
| Prop | Type | Default | Description |
|---|---|---|---|
| title (CommandDialog) | string | "Command Palette" | Accessible name for the dialog. |
| description (CommandDialog) | string | "Search for a command to run..." | Accessible description for the dialog. |