The basics
Three ways to add text:When to use what
Plain strings
For unstyled text. No wrapper needed:Text component
When you need styling:Formatting shortcuts
For common formatting without class names:Mixing styles
Combine multiple styles in one paragraph:Text containers
These components can contain text:| Component | Purpose |
|---|---|
Paragraph | Body text |
H1-H6 | Headings |
Li | List items |
Td / Th | Table cells |
Link | Hyperlinks |
Common patterns
Label + value
Status indicators
Highlighted text
Small print
Inline code
Superscript / subscript
Style inheritance
Styles flow from parent to child:Special characters
Line breaks
Tabs
Formatting reference
| Style | Class | Shortcut |
|---|---|---|
| Bold | font-bold | <Bold> |
| Italic | italic | <Italic> |
| Underline | underline | <Underline> |
| Strikethrough | line-through | <Strike> |
| All caps | uppercase | — |
| Small caps | capitalize | — |
| Superscript | align-super text-xs | — |
| Subscript | align-sub text-xs | — |
