Props
| Prop | Type | Description |
|---|---|---|
children | ReactNode | Text, formatting elements, links, images |
className | string | Tailwind classes |
id | string | Bookmark ID for internal links |
Plain text
Strings are automatically converted to text runs:<Text>.
Mixed content
Combine text with formatting:Styling
Alignment
Spacing
Indentation
Line height
Background
Special elements
Line breaks
Tabs
Page breaks
With links
Bookmarks
Useid to create an anchor for internal links:
What can go inside
- Plain strings (auto-wrapped)
Textwith stylingBold,Italic,Underline,StrikeLinkImage(inline)Tab,BreakLineVariablePageNumber
Paragraph elements, Table, H1-H6.