TrademarkTrademark
Docs
Ctrl k
Search docs...
Components

InlineCode

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.

InlineCode sets a short piece of code, such as a command or a prop name, in the code font on a weak neutral tint with a thin border. It is a Text, so it can sit inside a paragraph. For longer code, use CodeBlock. See the web InlineCode page for the web version.

On its own

Outside a Text, InlineCode shows its rounded border and padding.

Differences from the web

  • InlineCode is a Text, not a Flex, so it takes Text props instead of Flex props.
  • The web sets 80% of the surrounding text size. A nested Text cannot read its parent's size, so InlineCode uses the label-s size, which is what the web's code-s size uses.
  • Inside another Text, React Native ignores the border, radius and padding. Only the tint shows. Used on its own, all of them show.
  • The font is fonts.code from ThemeProvider, or the platform monospace font (Menlo on iOS, monospace on Android) when none is set.

API reference

Prop
Type
Default
Description
childrenReactNodeThe code. Required.
onBackground"<scheme>-<weight>""neutral-strong"The text colour.
styleTextStyle | TextStyle[]Style on top of the code style.
...textTextPropsOther Text props, except variant, family, size and weight.
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club