このページの翻訳はまだありません。英語版を表示しています。

AlignContent

Multi-line content alignment enumeration

Controls the distribution of space between and around content items along the cross axis in a multi-line flex container. This corresponds to the CSS align-content property.

Note: This property only has effect when flex-wrap is set to Wrap or WrapReverse.

Example

import { Style, AlignContent, FlexWrap } from "taffy-layout"; const style = new Style(); style.flexWrap = FlexWrap.Wrap; style.alignContent = AlignContent.SpaceBetween; // Distribute lines evenly

Enumeration Members

Enumeration MemberValueDescription
Center4Lines centered within the container
End1Lines packed toward the end of the cross axis
FlexEnd3Lines packed toward the end of the flex container
FlexStart2Lines packed toward the start of the flex container
SpaceAround7Lines evenly distributed with equal space around each
SpaceBetween6Lines evenly distributed with first/last at edges
SpaceEvenly8Lines evenly distributed with equal space between each
Start0Lines packed toward the start of the cross axis
Stretch5Lines stretched to fill the container

© 2026 ByteLand Technology Limited