Skip to main content
ActionsLevel 2

Command Palette

命令面板 (⌘K)

Web/SaaS 专属WebDesktopDifficulty: Advanced

The central command hub of modern SaaS and desktop tools — invoked via ⌘K to instantly search, navigate, and execute shortcuts with the keyboard.

01

Live Demo

Actually clickable
Live Demo Playground
⌘K按下快捷键或点击按钮呼出面板
Linear / Raycast 规范:键盘流核心效率中枢,通过 ⌘K / Ctrl+K 快速检索全站页面与快捷动作。

What you just saw:Press ⌘K in Linear, Notion, or GitHub to summon a centered floating modal with instant fuzzy search, grouped commands, and keyboard shortcut badges.

02

What it actually is

Command Palette is popularized by Linear, VS Code, and Raycast as the gold standard for desktop efficiency. It unifies global search, deep-link navigation, and shortcut action triggering into a single keyboard-driven interface. Power users can hit ⌘K or Ctrl+K from anywhere to jump across views or trigger workflows without touching the mouse.

command palettecmdkquick commandglobal search palettekeyboard palette
03

Anatomy · What it's made of

  1. Search Input命令搜索框

    Auto-focused input with search icon, placeholder, and ESC indicator

  2. Category Group分组列表

    Grouped list sections like Navigation, Actions, and Recent

  3. Shortcut Pill快捷键微胶囊

    Kbd badges displaying keys like ↵, ⌘K, ⌘C

04

When to Use

When it fits, and when it doesn't
Command Palette usage recommendations
SituationUse it?
Desktop Web and SaaS products with multi-level deep navigation and dense workflowsYes
Power-user oriented apps that benefit from keyboard shortcuts and fuzzy commandsYes
Unifying page navigation, data search, and action dispatch into a single entry pointYes
Exclusively mobile touch-screen experiences without hardware keyboardsNo

Do not treat Command Palette as the sole navigation mechanism; casual users still need visible on-screen links.

Avoid stuffing massive multi-field forms into the palette; redirect to a dedicated modal or view instead.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Build a Linear-style Command Palette triggered by ⌘K / Ctrl+K: centered elevated modal, fuzzy search across actions and pages, keyboard arrow navigation, and shortcut badges.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Popup a search dialog.

Say this instead

Implement a Command Palette spec: centered 640px window, ⌘K global shortcut trigger, keyboard navigation, grouped actions and pages with shortcut kbd badges.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.