Umbra UI

Kbd

A keyboard key or shortcut.

Staticimport { Kbd } from 'umbra-ui'

⌘K

Playground

Esc

Props

PropTypeDefaultDescription
size "sm" | "md"mdKey cap size.

Usage notes

Renders a <kbd> element.

Accessibility

  • Screen readers read the text content: prefer Ctrl over symbols when clarity matters.

Import

import { Kbd } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app