Skip to main content
For development, import Text from @servicetitan/anvil2-rn. For design, find it in the Mobile Agentic Component Library file.

Common Examples

To use the Text, import it from @servicetitan/anvil2-rn and pass a required text prop. The kit forbids children. All variants render a native Text; nested Text stays inline.
React Native has no CSS color inheritance, so color selects a semantic foreground role. align sets horizontal alignment for multi-line copy.

Headline

Set variant="headline" and a required el ("h1"–"h6") so the semantic level is independent of visual size. Headline size defaults to "major".

Body

Body is the default variant. Size defaults to "regular".

Eyebrow

Highlight and color

highlighted applies the suggested-change treatment and owns the foreground. color is ignored while highlighted.

Accessibility

  • Headline el sets accessibilityRole="header" and the heading level.
  • Body and eyebrow are ordinary text.
Last modified on October 27, 2026