Velocity X Components

Bento & Layout

Cluster Primitive

Horizontal wrapping group primitive for tag lists, pills, and button groups using flex-wrap plus gap.

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

Built for astro.

Full docs for Cluster Primitive →

astro v1.0.0
Cluster Primitive
ReactAstroTypeScriptTailwindZustandRadix UIZodSupabase

Props

NameTypeRequiredDefaultDescription
as'div' | 'ul'No'div'
space1 | 2 | 3 | 4 | 5 | 6 | 8No2
align'start' | 'center' | 'end' | 'baseline'No'center'
justify'start' | 'center' | 'end' | 'between'No'start'
classNamestringNo''

File this creates

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

text
components/velocity/cluster/Cluster.astro

Using the Cluster Primitive component

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