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.

@tonal-tokensclsxtailwind-mergelucide-react

Also press ⌘K anywhere in Tonal to jump across components and demos.

Installation

npx shadcn@latest add https://tonal.harlo.dev/r/tonal-command.json

Dependencies

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

PropTypeDefaultDescription
openboolean—Controls palette visibility.
onOpenChange(open: boolean) => void—Close handler for Escape or backdrop.
itemsCommandItem[]—Searchable grouped commands with optional shortcuts.
placeholderstring—Search input placeholder.