Skip to main content
  1. Docs
  2. Components
  3. Actions

Command palette

Search or jump to: anything in the console, by name, from the top bar or ⌘K.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<div role="dialog">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
ControlCommand KOpens and closes it anywhere on the page; Ctrl+K on Windows and Linux.
↑↓Moves through the results, skipping disabled ones.
EnterOpens the highlighted result.
EscapeCloses it, and returns focus to where it was.

02

Behaviour

Role and name
A modal dialog named "Search or jump to"; the search box is a combobox over a listbox.
Focus
Moves into the search box as it opens; comes back to the trigger as it closes.
Status
"Searching…" and "No results for …" are announced, through a status region.
Disabled results
Shown and greyed, with the reason as their description; skipped by the arrows and by Enter.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Keyboard: open, move, choose and close
  • Hindi: its words from QeetrixProvider
Next — Command paletteChangelog