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

FlexDirection

Flex direction enumeration

Defines the main axis direction for flex item layout. This corresponds to the CSS flex-direction property and determines how flex items are placed within the container.

Example

import { Style, FlexDirection } from "taffy-layout"; const style = new Style(); style.flexDirection = FlexDirection.Row; // Horizontal, left to right style.flexDirection = FlexDirection.Column; // Vertical, top to bottom

Enumeration Members

Enumeration MemberValueDescription
Column1Main axis runs vertically from top to bottom
ColumnReverse3Main axis runs vertically from bottom to top
Row0Main axis runs horizontally from left to right
RowReverse2Main axis runs horizontally from right to left

© 2026 ByteLand Technology Limited