Kbd

A key as it’s printed on the keyboard, for shortcuts in tooltips, menus and help.

Shortcuts

Search
CtrlK
Toggle the sidebar
CtrlB
Save and add another
ShiftEnter
Close the sheet
Esc
<Kbd keys={['mod', 'K']} />
<Kbd>Esc</Kbd>

In a tooltip

Rules

  • Use `mod` for ⌘ on a Mac and Ctrl elsewhere, so each sees their own keyboard.
  • One cap per key. A combination is caps side by side, no plus signs.
  • In tooltips and menus, after the action’s name. Never on its own without saying what it does.