UI Components
Kbd
Keyboard shortcut display component for documenting hotkeys and commands.
Quick Preview
โ+KCtrl+Sโง+โ+P
Installation
// Copy fromsrc/components/ui/Kbd.tsx
Examples
Single Keys
โโฅโงโTabEscEnter
In context
Press โ+K to open the command palette, or Esc to close it.
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Key name or symbol to display |
className | string | - | Additional CSS classes |