The Paragraph widget provides a way to display text content in your terminal user interface. It
allows not only plain text display but also handling text wrapping, alignment, and styling. This
page will delve deeper into the functionality of the Paragraph widget.
Usage
Styling and Borders
You can also apply styles to your text and wrap it with a border:
Wrapping
The Paragraph widget will wrap the content based on the available width in its containing block.
You can also control the wrapping behavior using the wrap method:
Setting trim to true will ensure that trailing whitespaces at the end of each line are removed.
Alignment
Styled Text
Paragraph supports rich text through Span, Line, and Text: