TrademarkTrademark
Docs
Ctrl k
Search docs...
Components

Kbd

Updated: October 18, 2026
View on GitHub
Soon
Not released yet. This is on main and is not in any published version yet. It will not install today.

Kbd draws a key of a keyboard, to show a shortcut. It is most useful on a tablet or a phone with a hardware keyboard. Pass the key's name as label or as children. See the web Kbd page for the web version.

Customization

Kbd takes Flex props, so you can change its background, border, padding or size.

Differences from the web

  • Kbd is a View. Inside a Text it sits in the line as a nested view, but its baseline may not line up exactly with the text around it. In a row of other views, use it as is.
  • The label is always label-default-s in neutral-medium. Pass your own Text as children for a different style.

API reference

Prop
Type
Default
Description
labelstringThe key's name. Used instead of children when set.
childrenReactNodeThe key's name, when label is not set.
...flexFlexPropsFlex props. The defaults are minWidth="32", background="neutral-strong", border="neutral-strong", radius="s", paddingX="4" and paddingY="2".
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club