Command palette
Global keyboard surface — type a command, jump to a route, or trigger an action. Grouped, fuzzy, and shipped with platform-aware shortcut hints.
Included in the single kansho full pack. Components are not offered as separate installs.
Launcher
Cmd/Ctrl + KComponent documentation
Command Palette
components/shell/command-palette.tsxPurpose
Provides a searchable modal command launcher with optional recents and empty-state recovery.
Appropriate use
Use for keyboard-first access to navigation and actions when commands have clear labels and grouping.
Example
components/shell/command-palette.tsx has a representative live example in the "Launcher" section on /components/command-palette.
States
Supports controlled open or closed state, query filtering, grouped items, recent commands, empty results, and an optional empty-state action.
API and props
CommandPalette accepts open, onClose, items, recents, placeholder, emptyLabel, emptyHint, onEmptyAction, and emptyActionLabel.
Dependencies
React, Radix Dialog, cmdk, Lucide icons, Kbd, and the Kansho cn utility.
Accessibility
The dialog manages focus and keyboard navigation through Radix and cmdk, includes a screen-reader title, and renders shortcut hints as text.
Limitations
The component does not register a global shortcut or execute commands automatically; callers own opening, item actions, and recent history.
Source
Source: components/shell/command-palette.tsx.
Full pack
components/shell/command-palette.tsx is documented at /components/command-palette and installs only through the single Kansho full pack; no individual component install is offered.