Search

Search components and blocks

Sign in

Command Menu

Pro

A ⌘K palette that owns its own open state and keyboard shortcut — click the trigger or press Cmd/Ctrl+K. The single highest-perceived-craft feature a solo dev can ship in an afternoon.

pnpm dlx shadcn@latest add @ditherui/command

Command Palette

Search for a command to run...

Props

groupsCommandMenuGroup[]—
placeholderstring"Search..."
triggerClassNamestring—
openboolean—
defaultOpenbooleanfalse
onOpenChange(open: boolean) => void—

When to use the command menu

Use the command menu for a Cmd+K palette. It owns its open state and keyboard shortcut, so people can click the trigger or press Cmd or Ctrl+K.

Suggested components