Align Items

Control alignment of items along the cross axis.

The alignItems property defines the default behavior for how flexible items are laid out along the cross axis on the current line. Think of it as the justifyContent for the cross axis (perpendicular to the main axis).

Values

ValueDescription
StretchDefault. Items stretch to fill the container's cross size (respecting min/max constraints).
FlexStartItems align to the start edge of the cross axis.
FlexEndItems align to the end edge of the cross axis.
CenterItems align in the center of the cross axis.
BaselineItems align based on their text baseline.

Example

Loading Preview…

Next Steps

© 2026 ByteLand Technology Limited