Skip to content

Command ​

⌘K palette

A search-and-run palette for apps with many commands — ⌘K to open, type, Enter. It helps people who know what they want; it doesn't replace visible navigation.

Use it for actions and navigation, not for picking values (that's Combobox). Items carry a group, optional keywords and a shortcut label.

Basic
or press ⌘K
New project⌘N
Open recent…⌘O
Save all⌥⌘S
Toggle sidebar⌘B
Toggle theme
Zoom in⌘+
Go to character…
Go to news

Inline
New project⌘N
Open recent…⌘O
Save all⌥⌘S
Toggle sidebar⌘B
Toggle theme
Zoom in⌘+
Go to character…
Go to news

  • ⌘K / Ctrl+K opens it (hotkey), except inside rich-text editors, where that key already inserts a link.
  • The input is a combobox over the result list: ↑ / ↓ move, Enter runs, Home / End jump. Groups (group) are labelled; "No results" is announced.
  • keywords add search terms; filter replaces matching; inline renders it in the page instead of a modal.

Usage ​

ts
import { BlessCommand } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
items*BlessCommandItem[]—
placeholderstring"Type a command…"
labelstring"Search commands"accessible name of the search input
emptyTextstring"No results."
hotkeybooleantruebind ⌘K / Ctrl+K to open
inlineboolean—render inline instead of inside a modal
filter((item: BlessCommandItem, query: string) => boolean)—
openbooleanfalse

Events

NamePayloadDescription
update:open[value: boolean]
select[item: BlessCommandItem]

Slots

NameScopeDescription
item{ item: BlessCommandItem; }
footer—

Released under the MIT License. Character names and artwork belong to their owners.