Velocity X Components

Bento & Layout

Stack Primitive

Vertical rhythm primitive that spaces children with flex gap instead of margin-stacking.

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

Built for astro.

Full docs for Stack Primitive →

astro v1.0.0
Stack Primitive
Item one
Item two
Item three

Props

NameTypeRequiredDefaultDescription
as'div' | 'section' | 'ul' | 'ol'No'div'
space1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16No4
align'start' | 'center' | 'end' | 'stretch'No'stretch'
classNamestringNo''

File this creates

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

text
components/velocity/stack/Stack.astro

Using the Stack Primitive component

Install it with velocityx add stack. 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.