Data display
Kbd
Keyboard keys in help text, menus and tooltips.
When to use
Show a keyboard key or shortcut.
Use something else
Code values → CodeInline.
Do
- One Kbd per key (⌘ K).
Don't
- Don't use it for buttons or labels.
Props
| Prop | Type |
|---|---|
inverse | boolean |
children required | React.ReactNode |
Use
const { Kbd } = window.Tessera;
const el = React.createElement(Kbd, { /* props */ });