Skip to content
Playground

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.

ProductionHealthy12 services
TSX
import { Cluster } from "@zentara-co/zenos-ui";

Use justify to distribute the whole group and align to align items across the row.

start

center

between

Wrapping is enabled by default. gap, align, justify, and wrap accept breakpoint values.

AuthenticationInfrastructureObservabilityData protectionIncident response

Use Stack with direction="row" when you need row-specific sizing, scrolling, or explicit flex behavior beyond this focused wrapping relationship.

API

PropTypeDefaultDescription
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-*.

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.