Pineapple Builder

Button

Give visitors a clear next step, such as opening your contact page or booking link.

Code name: Button · Category: Navigation

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

When to use it

Use one clear button for the main action in a section. A label such as “Book a consultation” tells visitors what happens next.

In the editor

  1. Select the button and change its label.
  2. Set the destination to an existing page or a verified external link.
  3. Choose contained, outlined or text styling and test the destination in preview.

Example

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

<Button text="Book a consultation" navigatePathname="/contact" variant="contained" />

Behaviour and limitations

  • Change the label through text. Button does not use children for its label.
  • navigatePathname is the destination; hrefTarget is the browsing context. Preserve the target when only changing the URL.
  • actions is an editor control group. Set idAnchorName and plausibleGoal as individual properties, not an actions object.

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
textstring"Try for free" (renderer)Text. See the usage notes for this block.
navigatePathnamestring"" (renderer)The link destination. Use an existing page or a verified URL.
hrefTargetSee guidanceNot declared hereLink browsing context, such as _self or _blank. It is separate from the destination.
fullWidthbooleanfalse (renderer)Full width. See the usage notes for this block.
variant"contained", "outlined", "text""contained" (renderer)Variant. See the usage notes for this block.
colorVariant"primary/secondary", "white/black", "primary", "secondary""primary/secondary" (renderer)Color variant. See the usage notes for this block.
size"small", "medium", "large""medium" (renderer)Size. See the usage notes for this block.
iconButtonbooleanfalse (renderer)Icon Button. See the usage notes for this block.
noTextPaddingbooleanfalse (renderer)Remove text padding. See the usage notes for this block.
startIconstringNot declared hereStart icon. See the usage notes for this block.
endIconstringNot declared hereEnd icon. See the usage notes for this block.
align"left", "center", "right""center" (renderer)Align. See the usage notes for this block.
actionsSee guidanceNot declared hereEditor group only. Set its individual supported properties; do not emit an actions object.
alignVerticalSee guidanceNot declared hereVertical alignment within the surrounding layout.
backgroundColorstringNot declared hereBackground colour. Theme-derived appearance can still depend on the surrounding section.
textColorstringNot declared hereText color. 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.
idAnchorNamestring"" (renderer)ID (anchor). See the usage notes for this block. Editor group: actions.
plausibleGoalstringNot declared hereGoal Name. See the usage notes for this block. Editor group: actions.
cssstringNot declared hereCustom CSS text. Preserve unrelated rules and prefer the dedicated property for supported edits.
screenListstring"" (renderer)Comma-separated device names to hide on: mobile, tablet, desktop. An empty string hides on none.
Pineapple Builder - AI Website Builder Create Docs