General

Layout Group

Joins elements into a single control: the inner corners are squared off and the border between two neighbours becomes one line instead of two.

How it works

Put pui-group-row or pui-group-col on the container. The children need no class of their own.

A segmented control

Because the pieces keep their own style and color classes, a selected item is just a different style:

Mixing controls

Anything can go in a group, in any order:

Responsive

pui-group-responsive is a row on screens wider than 1024px and a column below that.

Other components

A list of items joins the same way:

  • First
  • Second

An accordion needs nothing: it already joins its own items.

And a timeline turns horizontal: