Skip to content

Text Display

The Text Display element is a rich content block with two independently styled sections — a header and a body — plus container-level styling. It supports dynamic expressions to inject runtime values into the displayed text.

Use it for personalised messages, formatted instructions, summary panels, or any display content that needs fine-grained typographic control.

Dynamic content

Text fields support $.self.<field> expressions to inject runtime values. For example, Hello $.self.name renders the current user's name inline.

Header properties

PropertyTypeDescription
headerTextstringHeader text content
headerPresetstringTypography preset — see Typography presets
headerWeightstringFont weight — e.g. text-weight-regular, text-weight-bold
headerColorstring (CSS)Text colour
headerAlignstringtext-left, text-center, text-right, text-justify
headerFormattingarrayStyle flags — italic, underline, etc.
headerBgcolorstring (CSS)Header section background colour
headerPaddingstringInner padding — spacing tokens (none, xs, sm, md, lg, xl)
headerBorderstringBorder placement — none, top, bottom, all, etc.
headerBorderColorstring (CSS)Border colour
headerBorderSizenumber (px)Border thickness
headerBorderRadiusnumber (px)Header section corner rounding

Body properties

PropertyTypeDescription
bodyTextstringBody text content
bodyPresetstringTypography preset
bodyWeightstringFont weight
bodyColorstring (CSS)Text colour
bodyAlignstringText alignment
bodyFormattingarrayStyle flags
bodyLineHeightnumberLine height multiplier (e.g. 1.5)
bodyLetterSpacingnumber (em)Letter spacing
bodyBgcolorstring (CSS)Body section background colour
bodyPaddingstringInner padding
bodyBorderstringBorder placement
bodyBorderColorstring (CSS)Border colour
bodyBorderSizenumber (px)Border thickness
bodyBorderRadiusnumber (px)Body section corner rounding

Container properties

PropertyTypeDescription
bgcolorstring (CSS)Overall container background colour
bordercolorstring (CSS)Container border colour
borderSizenumber (px)Container border thickness
borderRadiusnumber (px)Container corner rounding
outlinedbooleanApply an outline style to the container

Plus shared layout properties.

Typography presets

ValueStyle
text-h1text-h6Heading levels 1–6
text-subtitle1 / text-subtitle2Subtitle styles
text-body1 / text-body2Body text
text-captionSmall caption text
text-overlineSmall uppercase label

See also: Elements overview

S-Launch