Theme Playground

Storefront

Spacer

Deliberate vertical whitespace block for controlling rhythm between storefront sections.

Best for

editorial pacingsection rhythmintentional whitespace

Import

import { Spacer } from "@enadhq/enad-react-sdk/client/storefront"

When to use it

Use Spacer when vertical whitespace is a real part of the page composition. It is useful in editorial layouts, CMS-driven longform pages, and builder-style content where the gap itself needs to be explicit and reusable.

If the spacing only belongs to one local component relationship, normal layout utilities are usually simpler.

Composition notes

Spacer is intentionally minimal. size chooses between sm, md, and lg based on the rhythm the page needs.

Because the component is pure layout, place it intentionally. It should represent a real structural pause, not just patch over inconsistent local spacing.

Behavior and theming guidance

Prefer one spacing language per page. If most of the layout already uses normal stack or section spacing, reserve Spacer for the places where content authors genuinely need explicit control.

Use the smallest size that communicates the rhythm. Large whitespace is powerful, but too many large spacers can make long pages feel disconnected.

Examples

Live examples you can edit directly in the sandbox.

1 example

Section rhythm

Use explicit spacers when the gap is part of the authored content structure rather than a side effect of local component margin.

Component Sets

Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.

Props

PropTypeDefaultDescription
sizestringmd
Controls the vertical padding height of the spacer