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.

In Flexbox, this property distributes wrapped lines. In Grid it aligns row tracks; in block layout it aligns the block content vertically.

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
SafeCenter13Safe center alignment that avoids start-edge overflow
SafeEnd10Safe end alignment that avoids start-edge overflow
SafeFlexEnd12Safe flex-end alignment that avoids start-edge overflow
SafeFlexStart11Safe flex-start alignment that avoids start-edge overflow
SafeStart9Safe start alignment that avoids start-edge overflow
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