Build a Spotlight-style command palette (⌘K) with fuzzy search, groups, and keyboard navigation — trending via kbar & cmdk.
Skip to solutionKEEP THE
mediumFrontend
Build a Command Palette (kbar / cmdk) with Fuzzy Search
847 views
01
Understand the problem
ReactCommand PalettekbarcmdkFuzzy Search
02
Attempt it yourself
Sketch your approach before reading the solution — that's what interviews test.
Nudge consolestandby
Stuck? Beam a request up — the console returns a conceptual nudge that guides your logic without spoiling the implementation.
03
Study the solution
Requirements
- Trigger with
⌘K/Ctrl+Kand/; overlay with input + grouped results (Actions, Files, Recent). - Fuzzy search (e.g.
fuse.jsorcmdkbuilt-in) ranking; highlight matched chars. - Keyboard: ↑/↓ to navigate, Enter to execute, Esc to close; show
⌘shortcuts; trap focus.
Architecture
- Us
Solution ready — 2 min read
Classified // press E to declassify
04
Join the discussion
Discussion (0)
Sign in to join the discussion.
No responses yet. Be the first to share what you think.
Transmission complete // awaiting log
KEEP THE
STREAK ALIVE.
Dossier 29 of 87 decoded in the Frontend Machine Coding track. One more won't hurt.