Skip to content

Cluster

[axCluster] is a horizontally-flowing layout that wraps when items don’t fit. Each child hugs its content; the cluster’s gap controls spacing. Ideal for tag lists, button rows, and toolbars.

import { AxClusterDirective } from '@axisui-ng/primitives';
<div axCluster gap="2" align="center">
<ax-badge>Angular</ax-badge>
<ax-badge>Signals</ax-badge>
<ax-badge>Tailwind</ax-badge>
</div>
InputTypeDefaultNotes
gap'0' | '1' | '2' | '3' | '4' | '5' | '6' | '8' | '10' | '12' | '16''2'Spacing token between items.
align'start' | 'center' | 'end' | 'baseline' | 'stretch''center'Cross-axis alignment (align-items).
justify'start' | 'center' | 'end' | 'between''start'Main-axis distribution (justify-content).

Presentational only. For a single-axis stack with stretched children, use Stack.

Interactive examples live in Storybook under Primitives / Cluster. Run pnpm storybook to explore them.