- Implementation
- Text Props
Common Examples
To use theText, 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.color selects a semantic foreground role. align sets horizontal alignment for multi-line copy.Headline
Setvariant="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
elsetsaccessibilityRole="header"and the heading level. - Body and eyebrow are ordinary text.