Skip to main content

Starwind UI v3.0 is now available! Migration guide

Press Ctrl to continue

Installation

Usage

---
import { Kbd } from "@/components/starwind/kbd";
---
<div class="flex items-center gap-2">
<span class="text-sm text-muted-foreground">Press</span>
<Kbd>Ctrl</Kbd>
<span class="text-sm text-muted-foreground">to continue</span>
</div>

Composition

Use KbdGroup when a shortcut contains more than one key:

KbdGroup
├── Kbd
└── Kbd

Basic

Ctrl Shift Alt Esc

Group

Use the KbdGroup component to group keyboard keys together.

Use

Ctrl + K

to open the command palette

Press

+ Shift + P

to open command palette

With Button

Use the Kbd component inside a Button component to display a keyboard key inside a button.

Common Shortcuts

Copy Ctrl + C
Paste Ctrl + V
Cut Ctrl + X
Undo Ctrl + Z

Arrow Keys

Use arrow keys to navigate

API Reference

Changelog

View version history v1.1.1 4 releases

v1.1.1

  • Named the generated aggregate default export so React and Astro tooling can identify the installed component cleanly.

v1.1.0

  • Added contract-generated Astro and React implementations while preserving the component’s existing public API and styling.

v1.0.2

  • Refactor tailwind variants functions into separate variants.ts file

v1.0.0

  • Initial release with starwind v1.11.0