Pineapple Builder

Card

Keep a related heading, description and other blocks together on a styled surface.

Code name: Card · Category: Layout

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

When to use it

Use a card for a service summary or a compact information group. Put several cards inside a row to compare related choices.

In the editor

  1. Add content inside the card.
  2. Choose its surface colour, border and shadow.
  3. Check card alignment in the surrounding row.

Example

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

<Card>
  <Typography variant="h3">A focused first session</Typography>
  <Markdown>Discuss your priorities and leave with a clear next step.</Markdown>
</Card>

Behaviour and limitations

  • Card contains child blocks. A card-level link uses navigatePathname.
  • For equal-height cards, use a parent row with alignRowVertical="stretch". Legacy fullHeight is not an active sizing control.
  • Avoid nested competing links when making the whole card clickable.

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
spacingobjectNot declared hereAn object of spacing settings. Preserve existing responsive values when changing a single setting.
backgroundColorstring"#ffffff" (editor only)Background colour. Theme-derived appearance can still depend on the surrounding section.
themeVariantstring"white" (renderer)Theme variant. See the usage notes for this block.
shadowColorstring"#DEDEDE" (renderer)Shadow color. See the usage notes for this block.
xsnumber12 (renderer)Mobile Size. See the usage notes for this block.
mdnumber12 (renderer)Tablet Size. See the usage notes for this block.
lgnumber12 (renderer)Desktop Size. See the usage notes for this block.
maxWidthnumberNot declared hereMax Width. See the usage notes for this block.
borderRadiusnumber10 (renderer)Border Radius. See the usage notes for this block.
elevationnumber10 (renderer)Shadow and elevation. See the usage notes for this block.
animationbooleantrue (renderer)Animation on hover. See the usage notes for this block.
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.
borderColorstring"" (renderer)Border Color. See the usage notes for this block.
backdropFilternumber0 (renderer)Glass effect. See the usage notes for this block.
screenListstring"" (renderer)Comma-separated device names to hide on: mobile, tablet, desktop. An empty string hides on none.
enablePaddingTemplatesbooleanfalse (editor only)Enable Responsive Padding. 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.
actionsSee guidanceNot declared hereEditor group only. Set its individual supported properties; do not emit an actions object.
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.
childrenSee guidanceNot declared hereNested content between the opening and closing tags. Follow the block-specific example.

Legacy compatibility

sm, fullHeight are retained for compatibility. Preserve existing values unless the requested change requires migration; do not choose them for new content without checking the notes above.

Pineapple Builder - AI Website Builder Create Docs