azabroflovski

Hotkey Button

Buttons

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 ButtonLinkDemo() {
  return (
    <div className="flex min-h-screen w-full flex-wrap items-center justify-center gap-3 p-10">
      <Button shape="pill" href="/guide">
        Guide
      </Button>
      <Button shape="pill" href="/components" aria-current="page">
        Components
      </Button>
    </div>
  );
}

More by azabroflovski

View all
  • Switch

    Switch

    11
  • Select

    Select

    7
  • Dialog

    Dialog

    5
  • Checkbox

    Checkbox

    4
  • Pin Input

    Pin Input

  • Radio

    Radio

  • Card

    Card

  • Bar Chart

    Bar Chart

More in Buttons

View all
  • Hero Button

    Hero Button

    21
  • Eclipse Button

    Eclipse Button

    9
  • Button

    Button

    141
  • Button

    Button

    19
  • Texture Button

    Texture Button

    111
  • HeroUI Toggle Button

    HeroUI Toggle Button

  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    64
  • Water Ripple Button

    Water Ripple Button

    4