Command Menu
A Ctrl/⌘ K palette for hopping around a portfolio: fuzzy search that underlines the letters it matched, grouped results, a highlight pill that springs between rows, key-cap hints and full combobox semantics.
Try it: Click the chip or press Ctrl/⌘ J (⌘ K by default in your app), type “wrk”, use ↑ ↓ and Enter.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/command-menu.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/command-menu. You can also copy the source into components/ui/command-menu.tsx (view on GitHub).
Usage
import { CommandMenu } from '@/components/ui/command-menu'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
items | CommandItem[] | 10 sample commands | { id, label, group?, hint?, keywords?, shortcut?, icon?, onSelect? }. |
onSelect | (item) => void | — | Fires after any command is chosen. |
triggerLabel / placeholder | string | — | Trigger chip text and input placeholder. |
hotkey | string | 'k' | Letter used with Ctrl/⌘ to toggle; '' disables the global shortcut. |
open / defaultOpen / onOpenChange | boolean | — | Controlled or uncontrolled visibility. |
className | string | — | Extra classes merged onto the trigger. |
Dependencies
motionlucide-react
Related Navigation components
- Island Section Nav
A floating pill that tells you where you are — current section with a scroll-progress ring — then swells into a full jump bar on hover, focus or tap with a sliding highlight, and settles back when…
- Magnetic Dock Nav
Dock with magnetic magnification on hover.
- File Tree Explorer
An editor-grade file tree: folders open on a soft height spring, hairline guides show depth, and one highlight glides between selected rows. Full WAI-ARIA tree keyboard support with type-ahead; the…
- Radial Toolburst
Center control bursts into orbiting tool nodes.
- Plucked String Tabs
Tabs hang from a taut string. Choosing one plucks the string there and the vibration travels as a real damped wave; every tab bobs with the string above it and a glowing bead slides to the active…
- Morph Pill Header
Full header collapses to a floating pill on scroll.