Skip to content

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;

Use flex-row to position flex items horizontally in the same direction as text.

flex-direction: Rowflex-direction: Row
if ui.div("flex flex-row gap-4") {
tile("01")
tile("02")
tile("03")
}
flex-direction: Row reversedflex-direction: Row reversed
if ui.div("flex flex-row-reverse gap-4") {
tile("01")
tile("02")
tile("03")
}
flex-direction: Columnflex-direction: Column
if ui.div("flex w-48 flex-col gap-4") {
tile("01")
tile("02")
tile("03")
}
flex-direction: Column reversedflex-direction: Column reversed
if ui.div("flex w-48 flex-col-reverse gap-4") {
tile("01")
tile("02")
tile("03")
}