About
An action button with primary/secondary/soft/ghost/link weight variants, three sizes, a pill shape, an icon-only mode, a loading spinner state, and an optional physical-key hotkey (e.g. Enter, Escape) that clicks the button and shows the key inside it. Faithfully ported to React from the Vue oyna-ui library by azabroflovski (MIT).
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Hotkey Button to your project and fits it to your theme.
Code
How Hotkey Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Button from "@/components/ui/oyna-button";
export default function ButtonVariantsDemo() {
return (
<div className="flex min-h-screen w-full flex-wrap items-center justify-center gap-3 p-10">
<Button variant="primary">Primary</Button>
<Button>Secondary</Button>
<Button variant="soft">Soft</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link →</Button>
</div>
);
}
















