OptionalbgBackground color.
OptionalboldRender text with bold weight.
OptionalfgForeground (text) color.
OptionalitalicRender text in italic style.
OptionalrepeatRepeat the text content a fixed number of times or to fill the available width. When set, wrapping is ignored.
OptionalunderlineRender text with an underline.
OptionalwrapText wrapping mode.
"none" (default) — no wrapping, content is hard-clipped at the box edge."word" — word-wrap to fit available width. Affects computed height.Whitespace is always preserved. \n produces explicit line breaks.
Props for the
Textprimitive.Text is a styled leaf node with no children and no sizing props — the parent container controls the box. Height is intrinsic, computed from content, newlines, and word-wrapping at the given width.