About
A keyboard key component for displaying keyboard shortcuts and key 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 } from "@/components/ui/kbd";
export default function DemoOne() {
return (
<>
<div className="flex flex-wrap gap-4 items-center">
<Kbd>Ctrl</Kbd>
<Kbd>⌘</Kbd>
<Kbd>Shift</Kbd>
<Kbd>Alt</Kbd>
<Kbd>Enter</Kbd>
<Kbd>Esc</Kbd>
<Kbd>Space</Kbd>
<Kbd>Tab</Kbd>
</div>
</>
);
}








