Zazz Design Framework
Components

Button group

Join adjacent buttons into a single segmented unit, horizontal or vertical.

Wrap two or more .buttons in .button-group to fuse them into one segmented control. The group squares off the inner corners and collapses the shared border so the buttons read as a unit, while each button keeps its own data-variant and data-size. Add role="group" and an aria-label so assistive tech announces the set.

Horizontal

The default orientation lays buttons out in a row.

Loading components…

Vertical

Set data-orientation="vertical" on the wrapper to stack them.

Loading components…

API

AttributeValues
data-orientationvertical (omit = horizontal default)

The group reads each child's own --button-radius, so the outer corners follow the buttons' data-size automatically — only the inner corners are squared. Need a divider between segments? Drop your own separator element in as a child; it inherits the same border collapse. You never need to touch zazz/styles/.

On this page