Style.Flex_directionSourceCSS flex-direction property for flexbox layout.
The flex-direction property establishes the main axis of a flex container, determining the direction in which flex items are laid out. The main axis defines the primary direction of item flow, while the cross axis runs perpendicular to it.
Items are justified along the main axis and aligned along the cross axis.
Reference: CSS Flexbox Level 1
type t = | RowMain axis is horizontal, left to right. Defines +x as the main axis.
*)| ColumnMain axis is vertical, top to bottom. Defines +y as the main axis.
*)| Row_reverseMain axis is horizontal, right to left. Defines -x as the main axis.
*)| Column_reverseMain axis is vertical, bottom to top. Defines -y as the main axis.
*)main_axis t returns the absolute axis corresponding to the main axis.
Row and Row_reverse return HorizontalColumn and Column_reverse return Verticalcross_axis t returns the absolute axis corresponding to the cross axis.
The cross axis is always perpendicular to the main axis.
Row and Row_reverse return VerticalColumn and Column_reverse return Horizontalto_string t returns the CSS string representation of t.
Row returns "row"Column returns "column"Row_reverse returns "row-reverse"Column_reverse returns "column-reverse"pp fmt t pretty-prints t to fmt using its CSS string representation.