Heading

A title (H1–H4). Inner text supports {{variables}}.

A title (H1–H4). Inner text supports {{variables}}.

PropTypeDefaultDescription
levelenum1 | 2 | 3 | 42Heading level — controls size/weight.
alignenumleft | center | rightleftText alignment.
colorcolor—Text color.
fontSizenumber—Font size (px). Overrides the level's default size (28/22/18/16 for H1–H4).
fontFamilystring—Override the document font for this heading.
fontWeightstring—Font weight (e.g. 400, 600, 700). Overrides the default bold heading weight.
lineHeightstring—Line height — a unitless multiplier (e.g. 1.3) or CSS length.
letterSpacingnumber—Letter spacing (tracking) in px. Great for eyebrow labels.

Common props

Every component accepts these on top of its own props.

PropTypeDefaultDescription
marginBottomnumber16Vertical space (px) below the block.
classNamestring—Tailwind-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.
customCsscss—Extra inline CSS declarations merged onto the block's root element (e.g. "letter-spacing: 1px; opacity: 0.9"). Inlined so it survives every client.

Set one side at a time with the padding and margin objects in the visual editor's inspector.

Search docs and guides

Search the docs and product guides.