Skip to content

Dynamic Text โ€‹

The Dynamic Text element is a rich content block with two independently styled zones โ€” a Header and a Body โ€” inside a shared container. Both zones support runtime expressions, so you can inject live values into the displayed text.

Use it for personalised messages, formatted instructions, or summary panels.

Every element has a Component ID.

Expressions โ€‹

Header and Body templates resolve direct lookups inline โ€” $.self.*, $.form.*, $.state.*, $.variable.*, and $.image.*. For computed values or helpers, wrap an expression in {{ }} โ€” for example {{ $sum('line_total') }}. See the Scripts reference.

PropertyDescription
Header TemplateThe header text, including any expressions
PresetTypography preset โ€” Heading 1โ€“6, Subtitle 1/2, Body 1/2, Caption, or Overline
WeightThin, Light, Regular, Medium, Bold, or Bolder
AlignLeft, Center, Right, or Justify
FormattingMulti-select โ€” Italic, Underline, Uppercase, Lowercase, Capitalize, No Wrap
Text Color / BackgroundZone colours (theme colours)
PaddingNone, Extra Small, Small, Medium, Large, or Extra Large
BorderNone, Top, Bottom, or Full; when set, exposes Thickness (1โ€“10 px), Radius (0โ€“32 px), and Border Color

Body โ€‹

The Body has the same controls as the Header (Preset, Weight, Align, Formatting, Text Color, Background, Padding, Border), plus:

PropertyDescription
Body TemplateThe body text, including any expressions (newlines are preserved)
Line HeightSlider, 0.8โ€“3
Letter SpacingSlider, โˆ’2 to 10 px

Block Container โ€‹

PropertyDescription
OpacityOverall block opacity โ€” slider, 0โ€“100%

It also shows the shared Appearance controls: Background color, Lift on hover, Shadow Elevation, and Border & Shape.

Layout โ€‹

Column width, margins, and padding work the same as every element โ€” see Common Properties โ€บ Layout.

Rules โ€‹

Conditional visibility โ€” Dynamic Text has no validation.


See also: Elements overview ยท Common Properties