Skip to main content
Container for text content. The basic building block for document text.

Props

PropTypeDescription
childrenReactNodeText, formatting elements, links, images
classNamestringTailwind classes
idstringBookmark ID for internal links

Plain text

Strings are automatically converted to text runs:
No need to wrap plain text in <Text>.

Mixed content

Combine text with formatting:
Or use formatting shortcuts:

Styling

Alignment

Spacing

Indentation

Line height

Background


Special elements

Line breaks

Tabs

Page breaks



Bookmarks

Use id to create an anchor for internal links:

What can go inside

  • Plain strings (auto-wrapped)
  • Text with styling
  • Bold, Italic, Underline, Strike
  • Link
  • Image (inline)
  • Tab, BreakLine
  • Variable
  • PageNumber
What can’t go inside: other Paragraph elements, Table, H1-H6.