Layouts side by side

A container lays out its items through one layout config. The same six items sit under seven layouts here. align, pack and flex change the three flex layouts as they run; Next item steps the card and turns the cube.

align
pack

fit

One item fills the whole container: the first of the six.

1
2
3
4
5
6

hbox

A row. align places the items across it, pack along it.

1
2
3
4
5
6

vbox

A column, with the same align and pack.

1
2
3
4
5
6

flexbox

A row that wraps when its items run out of room.

1
2
3
4
5
6

grid

A CSS grid. Its three columns come from the container's stylesheet.

1
2
3
4
5
6

card

One item at a time. activeIndex picks it.

1

cube

The six items as the faces of a cube. activeIndex turns it to one.

1
2
3
4
5
6