Cluster
Wraps related inline items with responsive spacing and alignment.
Cluster groups related items in a wrapping row. It works well for actions, filters, tags, metadata, and other content that should flow onto additional lines when space runs out.
Import
Section titled “Import”import { Cluster } from "@zentara-co/zenos-ui";Distribution
Section titled “Distribution”Use justify to distribute the whole group and align to align items across the row.
start
center
between
Responsive wrapping
Section titled “Responsive wrapping”Wrapping is enabled by default. gap, align, justify, and wrap accept breakpoint values.
Use Stack with direction="row" when you need row-specific sizing, scrolling, or explicit flex behavior beyond this focused wrapping relationship.
API
| Prop | Type | Default | Description |
|---|---|---|---|
as | ElementType | div | Rendered semantic element. |
gap | Responsive<Spacing> | 2 | Space between children. |
align | Responsive<Align> | — | Cross-axis alignment. |
justify | Responsive<Justify> | — | Main-axis distribution. |
wrap | Responsive<boolean> | true | Responsive wrapping. |
native props | React.HTMLAttributes<HTMLElement> | — | Forwards native attributes, events, aria-*, data-*, className, style, and ref. |
Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props,
including className, style, aria-*, and data-*.
Accessibility
Section titled “Accessibility”Cluster adds no roles or keyboard behavior. Render it as nav, ul, or another semantic element when the grouped content requires that meaning, and preserve the natural DOM order when changing visual distribution.