Skip to content
GitHub

Kbd

A keyboard shortcut component

K
+K

Installation

Usage

Variant

Use the variant prop to change the visual style of the kbd.

Outline

K

Examples

Group

Use <KbdGroup /> to group keys into a single shortcut.

Use
Ctrl+K
to open the command palette

Input Group

Use <Kbd /> inside <InputGroup /> addons to show shortcut hints next to inputs.

K

Button

Add shortcut hints to buttons with <Kbd /> or <KbdGroup />.

Tooltip

Show keyboard shortcuts in <Tooltip /> content.

API Reference

Kbd

Styled representation of a single key (e.g. ⌘, Enter).

KbdGroup

Groups multiple keys into one shortcut (e.g. ⌘ + K).