Pineapple Builder

Text and headings

Style a single heading or text element with precise size, weight, alignment and colour.

Code name: Typography · Category: Text

Registered in the live renderer. Website context and the limitations below still apply.

When to use it

Use Typography for a standalone title, subtitle, caption or short paragraph. Use Rich text when you need several paragraphs or lists in one block.

In the editor

  1. Select the text and update its words.
  2. Choose a heading or body variant that matches its place in the page.
  3. Adjust size, weight and alignment without skipping heading levels just for appearance.

Example

This example uses illustrative content. Media placeholders must be replaced with your own assets; data-backed blocks need the normal website context.

<Typography variant="h2" align="left">
  Advice you can act on
</Typography>

Behaviour and limitations

  • The visible words are children of the element, not a text property.
  • variant chooses the text style. Keep a meaningful heading hierarchy for readers and assistive technology.

Property reference

Types below describe the editor controls and known choices, not every value accepted by the renderer. A renderer default is extracted from its parameter; an editor-only default does not prove the runtime default. “Not declared here” does not mean required. Preserve omitted values unless the requested edit needs them.

PropertyEditor value typeDefault evidenceGuidance
variant"h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "caption""h6" (renderer)Variant. See the usage notes for this block.
childrenSee guidanceNot declared hereNested content between the opening and closing tags. Follow the block-specific example.
backgroundColorstringNot declared hereBackground colour. Theme-derived appearance can still depend on the surrounding section.
colorstringNot declared hereColor. See the usage notes for this block.
align"left", "center", "right""center" (renderer)Align. See the usage notes for this block.
alignVerticalSee guidanceNot declared hereVertical alignment within the surrounding layout.
fontSizeSee guidanceNot declared hereFont Size. See the usage notes for this block.
fontWeight"auto", 100, 200, 300, 400, 500, 600, 700, 800, 900, 950"auto" (renderer)Font Weight. See the usage notes for this block.
lineHeight"initial", "12px", "14px", "16px", "20px", "24px", "32px", "48px", "64px", "72px""initial" (renderer)Line Height. See the usage notes for this block.
marginBottombooleantrue (renderer)Margin bottom. See the usage notes for this block.
paragraphbooleanfalse (renderer)Paragraph. See the usage notes for this block.
spacingobjectNot declared hereAn object of spacing settings. Preserve existing responsive values when changing a single setting.
animationType"none", "fade-up", "fade-down", "fade-left", "fade-right", "flip-up", "flip-down", "flip-left", "flip-right", "zoom-in", "zoom-left", "zoom-right""" (renderer)Entrance animation setting. Use a supported editor value; preserve it for unrelated edits.
Pineapple Builder - AI Website Builder Create Docs