Skip to main content

Starwind UI v1.16 is now available! With new popover and more components With new input-group, native-select, and popover components

Kbd

Press Ctrl to continue

Installation

Usage

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

Kbd

The main keyboard key component used to display individual keyboard keys.

PropTypeDefault
classstring-
<Kbd>Ctrl</Kbd>

KbdGroup

A container component to group multiple keyboard keys together for displaying key combinations.

PropTypeDefault
classstring-
<KbdGroup>
<Kbd>Ctrl</Kbd>
<span>+</span>
<Kbd>K</Kbd>
</KbdGroup>

Changelog

v1.0.0

  • Initial release with starwind v1.11.0