FlexWrap

Flex wrap mode enumeration

Controls whether flex items wrap onto multiple lines when they overflow the container. This corresponds to the CSS flex-wrap property.

Example

import { Style, FlexWrap } from "taffy-layout"; const style = new Style(); style.flexWrap = FlexWrap.NoWrap; // All items on single line style.flexWrap = FlexWrap.Wrap; // Items wrap to new lines

Enumeration Members

Enumeration MemberValueDescription
NoWrap0All flex items are placed on a single line
Wrap1Flex items wrap into lines along the cross axis, following the container's direction
WrapReverse2Flex items wrap into lines in the reverse cross-axis direction

© 2026 ByteLand Technology Limited