navigation contract

CommandPalette

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

Variants

default
Search + grouped results
focused
Single-purpose (e.g. file search)

Sizes

md
560pt wide
lg
720pt wide

Slots

input
Search field at top
groups
Result groups (Actions / Pages / Recent)
footer
Keyboard shortcut hints

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.

Related

Get the CommandPalette contract in your project.