Text

Renders normal text.

Properties

NameTypeDefaultDescription
textStringThe text content to render.
colorString#000000Text color. Example: ‚#333333‘ or color name like ‚onBackground‘.
fontSizeInt14Font size in sp.
fontWeightStringNormalFont weight. Example: Normal, Bold, Medium, etc.
textAlignStringLeftText alignment: Left, Center, Right, Justify.
paddingStringSpace around the content. Accepts 1, 2 or 4 integers (in dp): ‚8‘ (all), ‚8 16‘ (vertical horizontal), or ‚8 16 16 8‘ (top right bottom left).

Allowed Roots

← Back to Element Reference