About
A small raised-caps element for displaying keyboard shortcuts, showing ⌘ on Mac and Ctrl elsewhere with spoken names for symbols for screen readers.
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 KbdDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center gap-3 p-10">
<span className="text-sm text-muted-foreground">Press</span>
<Kbd keys="mod+k" />
<span className="text-sm text-muted-foreground">
to open the command palette
</span>
</div>
);
}








