flex-direction
Utilities for controlling the direction of flex items.
| Class | Effect |
|---|---|
flex-row |
flex-direction: row; |
flex-row-reverse |
flex-direction: row-reverse; |
flex-col |
flex-direction: column; |
flex-col-reverse |
flex-direction: column-reverse; |
Examples
Section titled “Examples”Use flex-row to position flex items horizontally in the same direction as text.


if ui.div("flex flex-row gap-4") { tile("01") tile("02") tile("03")}Row reversed
Section titled “Row reversed”

if ui.div("flex flex-row-reverse gap-4") { tile("01") tile("02") tile("03")}Column
Section titled “Column”

if ui.div("flex w-48 flex-col gap-4") { tile("01") tile("02") tile("03")}Column reversed
Section titled “Column reversed”

if ui.div("flex w-48 flex-col-reverse gap-4") { tile("01") tile("02") tile("03")}