When to use Text
Don’t need it:<Text> when you need to apply classes.
Props
| Prop | Type | Description |
|---|---|---|
children | ReactNode | Text content |
className | string | Tailwind classes |
Styling
Font weight
Font style
Colors
Sizes
Font family
Caps
Super/subscript
Formatting shortcuts
Instead of<Text className="font-bold">, use shortcuts:
Combining styles
Auto-generation
The React reconciler automatically wraps plain strings. This:<Text> only when styling.
