Tessera
GitHub

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

PropType
inverseboolean
children requiredReact.ReactNode

Use

const { Kbd } = window.Tessera;
const el = React.createElement(Kbd, { /* props */ });