N
neokit

KBD

Renders keyboard keys in a styled badge. Compose multiple Kbd elements with + separators to show keyboard shortcuts.

Basic

A single key.

kbd K

Sizes

Five sizes: xs, sm, md (default), lg, xl.

kbd sizes
xs sm md lg xl

In text

Use size="sm" to match surrounding body text height.

kbd inline

Press F to pay respects.

Use Tab to move focus between elements.

Hit Escape to close the modal.

Key combinations

Combine keys with + separators for shortcuts.

kbd combos
ctrl + shift + del
ctrl + C
ctrl + Z
alt + F4

Function & modifier keys

Unicode symbols for macOS modifier keys.

modifier keys

Full keyboard

All keys rendered in a staggered QWERTY layout.

full keyboard
qwertyuiop
asdfghjkl
zxcvbnm/

Arrow keys

WASD / arrow key cluster layout.

arrow keys
◀︎ ▶︎

Shortcut reference

Common use case: a help panel listing keyboard shortcuts.

shortcut table
Action Shortcut
Save ctrl +S
Undo ctrl +Z
Redo ctrl +Y
Find ctrl +F
Select all ctrl +A
Close tab ctrl +W