About
A keyboard key component for displaying keys and keyboard shortcuts, with a group wrapper for combinations.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Kbd to your project and fits it to your theme.
Code
How Kbd is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Kbd, KbdGroup } from "@/components/ui/kbd";
export default function KbdDemo() {
return (
<div className="flex flex-col items-center gap-6">
<div className="flex items-center gap-2">
<Kbd>Esc</Kbd>
<Kbd>Tab</Kbd>
<Kbd>Enter</Kbd>
</div>
<KbdGroup>
<Kbd>Ctrl</Kbd>
<span className="text-muted-foreground text-xs">+</span>
<Kbd>K</Kbd>
</KbdGroup>
</div>
);
}








