ComponentsDisplay
Kbd
Shows a keyboard key or shortcut.
Shows a keyboard key or shortcut.
<Kbd title="Command">⌘</Kbd>
<Kbd>K</Kbd>The same component at all four levels. Pick the one that fits your project; they share tokens, so they mix.
npm i junco @junco/tailwindimport { Kbd } from "junco";
<Kbd title="Command">⌘</Kbd><Kbd>K</Kbd>Press ⌘ K to search, or / anywhere. Esc closes.
Kbd#Also takes every native <kbd> attribute.
title| Prop | Type | Default |
|---|---|---|
titleSpell out symbols like ⌘ or ⇧ so they read clearly. | string | – |