Kbd (Keyboard)

The Kbd component is used to denote keyboard inputs.

Usage

Use the Kbd component to visually represent keyboard keys in your documentation, user guides, or anywhere else you want to highlight keyboard interactions.

Basic Usage

Displays a single keyboard key.

<Kbd shortcut={['Ctrl']} />

Combination

To display a combination of keyboard keys.

<Kbd shortcut={['Ctrl', 'Shift', 'P']} />

Different Variants and Sizes

You can use the variant and size props to customize the appearance.

<Kbd variant="ghost" size="large" shortcut={['Alt']} />

API

Props

PropTypeDefaultRequired
variant'solid' | 'ghost''solid'-
shortcutWoozCommandCode[]-Yes
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
sizeResponsive<Size>'medium'-
Aspect Ratio
Previous
Scroll Area
Next