Kbd
kbdA keyboard key and a chord of keys, rendered as real kbd elements with a keycap edge. For shortcut hints in menus, tooltips and empty states.
import { Kbd, KbdGroup } from "@/components/forme/kbd/kbd";
export function KbdDemo() {
return (
<div className="flex flex-col gap-4 text-body-2-regular text-muted-foreground">
<p className="flex items-center gap-2">
Open the command menu <KbdGroup keys={["⌘", "K"]} />
</p>
<p className="flex items-center gap-2">
Save <KbdGroup keys={["Ctrl", "S"]} />
</p>
<p className="flex items-center gap-2">
Close any panel with <Kbd>Esc</Kbd>
</p>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
KbdGroup
A chord: keys pressed together, with the separator hidden from assistive tech.
| Prop | Type | Default | Description |
|---|---|---|---|
keys* | readonly string[] | — |
Also takes every prop of <span> attributes.
The other parts
KbdTakes<kbd>attributes
Related


Area Chart
A line or area chart in plain SVG with no chart library. A crosshair snaps to the nearest point and lists every series, arrow keys walk it, round tick values, a legend from two series up, and a hidden table so screen readers get the numbers.
data display

Avatar
A user image with a fallback that shows initials while the image loads, and when it never arrives at all. Built on the Base UI avatar primitive, so the image and the fallback swap without a flash of empty space.
data display

Badge
A small label for status, counts and metadata, in five quiet variants and two sizes. The colour lives in the tint so the text stays readable at eleven pixels, and an icon or a dot inside the badge carries the state at a glance.
data display