Velocity X Components

Bento & Layout

Spacer Primitive

Explicit, aria-hidden vertical or horizontal gap element for one-off spacing between unrelated blocks, with a flex-grow mode.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add spacer

Built for astro.

Full docs for Spacer Primitive →

astro v1.0.0
Spacer Primitive
Above the spacer
Below the spacer

Props

NameTypeRequiredDefaultDescription
size1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32No8
axis'vertical' | 'horizontal'No'vertical'
growbooleanNofalse

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/spacer/Spacer.astro

Using the Spacer Primitive component

Install it with velocityx add spacer. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Bento & Layout.