Join

Groups adjacent children into a seamless joined element by removing interior borders and radii

Category: layout · WCAG 2.2-AA · group, join, segmented, layout

Props

PropTypeDefaultDescription
childrenReact.ReactNodeContent rendered inside the component.
orientation'horizontal' | 'vertical'horizontalLayout orientation of the component.
classNamestringAdditional CSS class names merged onto the root element.

When to use

When not to use

How to build an accessible Join in React →

Examples

Search group

Input and button joined into a single search control

<Join><Input placeholder="Search…" /><Button>Go</Button></Join>

Segmented buttons

Segmented button row with no gaps between items

<Join><Button variant="secondary">Day</Button><Button variant="secondary">Week</Button><Button variant="secondary">Month</Button></Join>

Vertical stack

Vertically joined button group

<Join orientation="vertical"><Button>Top</Button><Button>Middle</Button><Button>Bottom</Button></Join>

Related components

← Back to docs