layout · @awesome-ds/react
Cluster
Wrapping horizontal cluster.
State matrix
idle
Anatomy
- wrapping flex container
- inline children
- tokenized gaps
Keyboard contract
Wrapping never changes DOM or keyboard focus order.
Screen-reader contract
Adds no role and preserves logical reading order.
Content rules
- Use for peer controls or metadata.
- Do not imply sequence through visual position alone.
Public API
| Prop | Type | required | Description |
|---|---|---|---|
children | ReactNode | — | Inline peers |
…native | HTMLAttributes<HTMLDivElement> | — | Native div attributes |
Adaptation contracts
- RTL
- Logical properties and DOM order determine layout and reading order.
- High contrast
- Never clip descendant outlines or depend on decorative surfaces for grouping.
- Reduced motion
- Responsive reflow is immediate and does not animate layout geometry.
Verification IDs
Live
Live
ABC
Copyable example
import { Cluster } from "@awesome-ds/react";
<Cluster>…</Cluster>