Import
Basic Usage
Categories
Text supports multiple category types for different typography hierarchies:Appearances
Text has three appearance variations for different contexts:Use
alternative for displaying light text on dark content and vice versa. Use hint when giving users a hint or secondary information.Status Colors
Text supports status colors to convey different semantic meanings:Use
control status when displaying text within a contrast container.Nested Text
Text components can be nested to create rich text compositions:Custom Styling
Text can be styled with thestyle property:
Props
String, number, or nested Text component(s) to be rendered.
Typography category. Can be:
- Headings:
h1,h2,h3,h4,h5,h6 - Subtitles:
s1,s2 - Paragraphs:
p1,p2 - Labels/Captions:
c1,c2,label
Visual appearance variant:
default- Default text appearancealternative- Light text on dark/dark text on lighthint- Secondary, hint-style text
Status color of the text. Can be
basic, primary, success, info, warning, danger, or control.Custom style to apply to the text component.
Accepts all React Native Text component props.
