<Text>

Inner content may include inline HTML for formatting: <strong>, <em>, <u>, <a href>, and <span style> (color / background-color). These round-trip through the visual editor.

<Text>

Inner content may include inline HTML for formatting: <strong>, <em>, <u>, <a href>, and <span style> (color / background-color). These round-trip through the visual editor.

PropTypeDefaultDescription
alignenumleft | center | rightleftText alignment.
colorcolorText color.
font-sizenumber16Font size (px).
font-familystringOverride the document font for this block.
font-weightstringFont weight (e.g. 400, 500, 600, 700).
line-heightstringLine height — a unitless multiplier (e.g. 1.5) or CSS length.
letter-spacingnumberLetter spacing (tracking) in px.

Common props

Every block accepts these in addition to its own props.

PropTypeDefaultDescription
margin-bottomnumber16Vertical space (px) below the block.
classNamestringTailwind-style utility classes compiled to inline CSS at render (e.g. "mt-4 text-zinc-500 sm:hidden"). Responsive/pseudo variants are hoisted into a <style> block. `class` and `tw` are accepted as aliases in code.
custom-csscssExtra inline CSS declarations merged onto the block's root element (e.g. "letter-spacing: 1px; opacity: 0.9"). Inlined so it survives every client.

Per-side spacing is also supported via padding and margin objects in the visual editor's inspector.