Skip to content
OverlayBrowse overlay components
ComponentsOverlayNew in 0.2

Command palette

⌘K finder with input, grouped list, footer with keyboard hints, and animated selection.

Live preview

  • Suggested
  • Open billing dashboard
  • Invite teammatesI
  • Switch themeT

Usage

Adapters:React stableVue stable
index.html
<div class="lm-command" role="dialog" aria-label="Command palette">
  <input class="lm-command-input" />
  <ul class="lm-command-list" role="listbox">…</ul>
</div>

CSS classes (7)

ClassDescription
lm-commandOuter card
lm-command-inputSearch input
lm-command-listScrollable result list
lm-command-itemEach row
lm-command-group-labelSection header
lm-command-emptyNo-results state
lm-command-footerKeyboard hint footer

React props (2)

PropTypeDefaultDescription
openboolean
shortcutstringcmd+k

Accessibility

  • role='combobox' on input + role='listbox'/'option' on results.
  • Up/Down move selection; Enter activates; Escape closes.

Spotted something wrong? Edit this entry on GitHub.