Skip to content

Group

.group joins inputs, selects and buttons into one row.

The children share borders and corners. The focused child moves on top, so its focus ring shows over its neighbors. Add role="group" and a label when the row is one control, so screen readers announce it as one.

Buttons

With a select

A group on or inside search or role="search" gets pill ends. When search holds a form, put the class on the form.

Sizes

A size class on the group sizes every control inside.

Rounded and square

Variables

VariableDefault
--i-group-button-padding-inline2rem
--i-group-search-border-radiusvar(--i-border-radius-pill)