Vertical

Horizontal alignment classes

ClassDescription
items-stretchDefault value. Stretch items.
items-startAligns items to the left.
items-centerAligns items to the center.
items-endAligns items to the right.

CSS Variables

VariableDefaultDescription
--gap-x1rlhGap between on the x-axis
--gap-y1rlhGap between rows on the y-axis
--gap1rlhGap between items on both axes. --gap-x and --gap-y will override this value.

Children

Horizontal alignment classes

ClassDescription
self-startAligns item to the left.
self-centerAligns item to the center.
self-endAligns item to the right.
self-stretchDefault value. Stretches the item.

Vertical Alignment

ClassDescription
spacerCreates a gap between this item and the one before
flex-growExpands child to fill up available space

CSS Variables

VariableDefaultDescription
--grow-Whether to use flex-grow on the item