Installation
pnpm dlx shadcn@latest add @spell/kbdExamples
Key Symbols
Custom Display with Keyboard Listener
Usage
import { Kbd } from "@/components/kbd";<Kbd keys={["cmd", "K"]} />
<Kbd keys={["ctrl", "shift", "P"]} />
<Kbd keys={["alt", "tab"]} />Props
| Prop | Type | Default |
|---|---|---|
keys | (string | { display, key })[] | - |
className | string | - |
active | boolean | - |
listenToKeyboard | boolean | - |