Components
Kbd
Displays a keyboard keycap.
Kbd renders a styled keyboard keycap, useful for documenting shortcuts. KbdGroup combines multiple keys with plus separators.
Installation
pnpm dlx shadcn@latest add https://faber-ui.vercel.app/r/kbd.jsonUsage
import { Kbd } from "@/components/ui/kbd";
export default function Example() {
return <Kbd>⌘K</Kbd>;
}Examples
Default
⌘K
Group
⌘ShiftP
API
Each part forwards every prop of what it is built on, including className and render where Base UI supports it. The props column lists only what Faber UI adds on top.
| Part | Built on | Props |
|---|---|---|
Kbddata-slot="kbd" | <kbd>HTML | — |
KbdGroupdata-slot="kbd-group" | <kbd>HTML | — |
Changelog
Full Kbd historyLast updated on