navigation contract

CommandPalette

Cmd+K palette — search-first navigation surfacing actions, navigations, recents.

Variants

  • default
  • focused

Sizes

  • md
  • lg

Slots

  • input
  • groups
  • footer

Example

<CommandPalette open={open} onOpenChange={setOpen} groups={[{ name: 'Actions', items: actions }]} />

Usage rule

Triggered by ⌘K / Ctrl+K — global shortcut.

The full CommandPalette contract has 5 more rules, plus the do-not patterns. Get the full recipe.

Get the CommandPalette contract in your project.