Kbd
Keycaps for shortcuts. "mod" reads ⌘ on Apple devices and Ctrl elsewhere.
import { Kbd } from "pleate/kbd";Combinations and inline use
CtrlKShift?CtrlShiftPEsc↵
Press CtrlK to search trips, or N to start a new one.
Props
- keys
"mod+k", "shift+?" or a list of keys. Names like esc, enter, up and shift become symbols.
string | string[]- size
Keycap height.
"sm" | "md"default "sm"
Accessibility
- Nested <kbd> elements, read as text.
- The server renders Ctrl and switches to ⌘ after mount, so hydration never mismatches.