# Hotkey Button

> 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).

- Author: [azabroflovski](https://21st.dev/@azabroflovski)
- Library: azabroflovski
- License: MIT
- Tags: Button, Hotkey, CTA, Loading, Keyboard Shortcut
- Live preview: https://21st.dev/@azabroflovski/components/oyna-button

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/azabroflovski/oyna-button?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/button.md
