Skip to main content
WireKit
Copy for LLM

Spacer

A flex-grow element that pushes siblings apart. Use it inside Row or Stack to create space between items without explicit margins.

Basic Usage

Spacer pushing items apart in a row

In a Header Row

Brand left, actions right
MyApp

In a Stack

Spacer pushing footer to bottom
Main content
Footer pinned to bottom

Props

Prop Type Default Description
scope string|null null Scoped personalization name

The spacer renders as a <div> with aria-hidden="true" and flex-grow: 1. It accepts additional classes via the class attribute.

Keyboard Interaction

This component is a layout wrapper. Keyboard interaction is delegated to its children.

Design Tokens

The Spacer is a pure layout primitive — it renders an invisible flex-grow: 1 element with no color, border, typography, or padding. It does not reach for any WireKit theme tokens directly.

Was this page helpful?

Voting requires cookies or local storage. What we store