Kbd
A keyboard key or shortcut.
Staticimport { Kbd } from 'umbra-ui'
⌘K
Playground
Esc
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | md | Key cap size. |
Usage notes
Renders a <kbd> element.
Accessibility
- Screen readers read the text content: prefer
Ctrlover symbols when clarity matters.
Import
import { Kbd } from 'umbra-ui';
import 'umbra-ui/styles.css'; // once, at the root of your app