The text_align object defines the horizontal alignment of text elements within a cell. It enables precise control over how each part of the cell's content is aligned, including headlines, labels, sublabels, helper messages, and option text.

Supported alignment values are:

Use this object to adjust text layout based on design requirements or language direction, improving readability and visual structure.


Field Type Required Description
headline String Optional Alignment for the main headline.
subhead String Optional Alignment for subhead text under the headline.
label String Optional Alignment for the main label of the cell.
sublabel String Optional Alignment for the sublabel, if present.
body String Optional Alignment for body text in rich content.
helper String Optional Alignment for helper/hint text under inputs.
error String Optional Alignment for error messages.
option_label String Optional Alignment for the label in selectable options (e.g., dropdown or radio).
option_sublabel String Optional Alignment for the sublabel in selectable options.

Example

"text_align": {
  "headline": "center",
  "label": "left",
  "sublabel": "left",
  "helper": "left",
  "error": "right",
  "option_label": "left",
  "option_sublabel": "left"
}