All registry items
primitives/r/tonal-command.json
Tonal Command Palette
Keyboard-first ⌘K command menu with grouped results and Arrow/Enter navigation.
Tonal Command Palette
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Also press ⌘K anywhere in Tonal to jump across components and demos.
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-command.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-mergelucide-react
Usage
import { TonalCommand } from "@/components/tonal/command";
<TonalCommand open={open} onOpenChange={setOpen} items={items} />Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | — | Controls palette visibility. |
| onOpenChange | (open: boolean) => void | — | Close handler for Escape or backdrop. |
| items | CommandItem[] | — | Searchable grouped commands with optional shortcuts. |
| placeholder | string | — | Search input placeholder. |