Kbd
Apply .re-kbd to a native <kbd> for a raised key-cap look. Combine multiple
caps to spell out a shortcut.
Esc
Tab
↵
⌘
<div class="row">
<kbd class="re-kbd">Esc</kbd>
<kbd class="re-kbd">Tab</kbd>
<kbd class="re-kbd">↵</kbd>
<kbd class="re-kbd">⌘</kbd>
</div> Shortcut
Section titled “Shortcut”Open the palette with ⌘ K.
<p>Open the palette with <kbd class="re-kbd">⌘</kbd> <kbd class="re-kbd">K</kbd>.</p> Accessibility
Section titled “Accessibility”- Semantics —
.re-kbdis a styled native<kbd>, the standard element for keyboard input. Its text content is its accessible name and reads inline with the surrounding prose (e.g. “Open the palette with Command K”); it’s a passive display element, not a focusable or interactive control, so there’s no keyboard model. - Notes — purely visual. The raised key-cap look comes from border and shadow tokens, and the label is always a real character, so meaning never depends on color or styling alone. Spell a chord as separate adjacent
<kbd>caps so each key is announced individually. When using a glyph that may not read clearly on its own (e.g.⌘,↵), pair it with a text label nearby or in a.re-sr-onlyspan. See the accessibility guide.