horizontal

horizontal alignment

ClassDescription
justify-startDefault value. Aligns children items to the left.
justify-centerAligns children items to the center.
justify-endAligns children items to the right.
justify-aroundDistributes spaces equally around items
justify-betweenDistributes space equally between items

vertical alignment

ClassDescription
items-stretchDefault value. Stretch items.
items-startAligns items to the top.
items-centerAligns items to the vertical center.
items-endAligns items to the bottom.
items-baselineAligns items to the baseline.

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

ClassDescription
spacerCreates a gap between this item and the one before

vertical Alignment

ClassDescription
self-startAligns item to the top.
self-centerAligns item to the vertical center.
self-endAligns item to the bottom.
self-stretchDefault value. Stretches the item.
self-baselineAligns self to the baseline.