Zazz Design Framework
Components

Toggle group

Fuse several toggles into one segmented control, single- or multi-select.

Wrap two or more toggles in .toggle-group to fuse them into one segmented control — the same border-collapse and inner-corner squaring as a button group. Make it single-select by giving the toggles radio inputs that share a name; make it multi-select with checkbox inputs. Add role="group" and an aria-label so the set is announced.

Single select

Radios sharing a name — exactly one toggle stays on.

Loading components…

Multi select

Checkboxes — any number can be on at once.

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 --toggle-radius, so the outer corners follow the toggles' data-size automatically — only the inner corners are squared. You never need to touch zazz/styles/.

On this page