About
A keyboard key chip and key-combo display that renders ⌘ or Ctrl based on the visitor's platform, with a spring-dip press animation and an optional listen mode that highlights keys as they're actually held.
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, KbdCombo } from "@/components/ui/kbd";
export default function KbdDemo() {
return (
<div className="flex min-h-[200px] w-full flex-col items-center justify-center gap-6 bg-background p-8">
<div className="flex items-center gap-2 text-sm text-muted-foreground">
<span>Search</span>
<Kbd>mod</Kbd>
<Kbd>k</Kbd>
</div>
<div className="flex items-center gap-2 text-sm text-muted-foreground">
<span>Save</span>
<KbdCombo keys={["mod", "shift", "s"]} />
</div>
</div>
);
}








