Manti UI logoManti UIv0.8.0
StorybookGitHub

Kbd

Kbd renders the native <kbd> element for keyboard input while applying Manti typography, surface, radius, spacing, and elevation tokens.

+KEnter

Use separate Kbd elements for each key in a combination so assistive technology and copied text preserve the shortcut structure.

API

Kbd accepts every native <kbd> attribute in addition to the props below.

PropTypeDefaultDescription
size'sm' | 'md''sm'Visual size of the key cap.

Styling

Anatomy

PartSelectorDescription
root[data-scope="kbd"][data-part="root"]The semantic <kbd> element.

Tokens

TokenControls
--manti-kbd-radiusradius
--manti-kbd-padding-xpadding x
--manti-kbd-padding-ypadding y
--manti-kbd-font-sizefont size
--manti-kbd-border-widthborder width

Built end-to-end with Manti UI components and design tokens. Manti UI is a framework-agnostic design system on Zag.js.

GitHub