Skip to main content

Paragraph

Displays UTF-8 text with optional word-wrap. Ideal for status panels, help text, and message displays.

Usage

tui.widgets.Paragraph{
.text = "Hello, world!\nSecond line.",
.style = .{ .fg = .white },
.wrap = true,
}.render(area, buf);

Fields

FieldTypeDefaultDescription
text[]const u8UTF-8 content to display
styleStyle{}Text style (fg, bg, modifier)
wrapboolfalseEnable word-wrap