About
Display 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
"use client";
import {Kbd} from "@/components/ui/heroui-kbd";
export default function Basic() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8 leading-7 antialiased">
<div className="flex items-center gap-4">
<Kbd>
<Kbd.Abbr keyValue="command">⌘</Kbd.Abbr>
<Kbd.Content>K</Kbd.Content>
</Kbd>
<Kbd>
<Kbd.Abbr keyValue="shift">⇧</Kbd.Abbr>
<Kbd.Content>P</Kbd.Content>
</Kbd>
<Kbd>
<Kbd.Abbr keyValue="ctrl">⌃</Kbd.Abbr>
<Kbd.Content>C</Kbd.Content>
</Kbd>
<Kbd>
<Kbd.Abbr keyValue="option">⌥</Kbd.Abbr>
<Kbd.Content>D</Kbd.Content>
</Kbd>
</div>
</div>
);
}
export { Basic };








