Browse docs

Kbd (Keycap)

Tactile 3D mechanical keycaps for hotkeys, shortcuts, and command menus.

stableSince 0.14.0

On this page
  1. Semantic HTML
  2. Class contract
ExampleScroll inside to see moreOpen in a new page

The .pl-c-kbd component styles keyboard shortcuts and hotkey combos. Designed with 3D physical bevel shadows, monospaced centering, and tactile proportions reminiscent of mechanical keyboard switch caps.

Semantic HTML

<p>
  Press <kbd class="pl-c-kbd">⌘</kbd> <kbd class="pl-c-kbd">K</kbd> to open
  search.
</p>

Class contract

Selector Role
.pl-c-kbd Mechanical keycap with physical bottom border and bevel highlight.

Search Porchlight