Kbd
Keyboard keys and shortcuts.
Shortcuts
⌘K
Press Esc to close, ↑ ↓ to move.
<span class="mn-row"><kbd class="mn-kbd" title="Command">⌘</kbd><kbd class="mn-kbd">K</kbd></span>
<span class="mn-muted mn-small">Press <kbd class="mn-kbd">Esc</kbd> to close, <kbd class="mn-kbd">↑</kbd> <kbd class="mn-kbd">↓</kbd> to move.</span>Installation
Everything ships in one stylesheet. There is nothing to import per component.
<link rel="stylesheet" href="https://mian.ro/dist/mian.css">Prefer to own the files? /r/kbd.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.
Class reference
| Class / attribute | Description |
|---|---|
| mn-kbd | On a <kbd>. |
Accessibility
- Use <kbd>. For symbols like ⌘ add a title or visually hidden text ("Command").