TextProps
Interface TextProps
interface TextProps extends FlexItemStyleProperties
align
AlignHorizontal alignment within the slot width.
alignSelf
CrossAxisCross-axis alignment override for this child within its parent stack.
breakWords
booleanWhen true, allows shrink to reduce the text below its longest-word
width by hard-breaking at character boundaries (CSS
overflow-wrap: break-word). Off by default — prefer maxLines for
truncation, this for char-level wrap (monospace tables, hashes).
color
RGBfont
PDFFontletterSpacing
numberExtra space added between each character in points.
lineHeight
numberLine height in points; defaults to the font's full height for the size.
margin
EdgesInputMargin around the text.
maxLines
numberMaximum number of wrapped lines (truncates with ellipsis when exceeded).
opacity
numberAlpha transparency, 0 = fully transparent, 1 = fully opaque.
shrink
numberFlex shrink weight along the parent's main axis. When set and the
parent hstack/vstack overflows, the text's slot width is reduced
proportionally and the text re-wraps. By default bounded below by the
widest single whitespace-separated word — single-token strings (URLs,
hashes) won't shrink unless breakWords or maxLines is also set.
size
numberstrikethrough
booleanStrike a line through each rendered line.
underline
booleanUnderline each rendered line.
width
numberSlot width (enables word wrapping). If omitted, width is intrinsic.
wrap
booleanWhen false, explicit newlines still break but width does not soft-wrap.