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.
Header โ
| Property | Description |
|---|---|
| Header Template | The header text, including any expressions |
| Preset | Typography preset โ Heading 1โ6, Subtitle 1/2, Body 1/2, Caption, or Overline |
| Weight | Thin, Light, Regular, Medium, Bold, or Bolder |
| Align | Left, Center, Right, or Justify |
| Formatting | Multi-select โ Italic, Underline, Uppercase, Lowercase, Capitalize, No Wrap |
| Text Color / Background | Zone colours (theme colours) |
| Padding | None, Extra Small, Small, Medium, Large, or Extra Large |
| Border | None, 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:
| Property | Description |
|---|---|
| Body Template | The body text, including any expressions (newlines are preserved) |
| Line Height | Slider, 0.8โ3 |
| Letter Spacing | Slider, โ2 to 10 px |
Block Container โ
| Property | Description |
|---|---|
| Opacity | Overall 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
