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 onto multiple lines from top to bottom
WrapReverse2Flex items wrap onto multiple lines from bottom to top

© 2026 ByteLand Technology Limited