Skip to content

flex-direction

Utilities for controlling the direction of flex items along horizontal or vertical axes.

Flexbox & GridTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating flex-direction
flex-row/.flex_row()
use iss::{flex_tw, tw};
let bar = flex_tw(items, tw!("w-full flex-col @sm:flex-row items-center gap-3"));
Tailwind Class CSS Property / Effect iss::typed Builder
flex-row flex-direction: row; .flex_row()
flex-row-reverse flex-direction: row-reverse; .flex_row_reverse()
flex-col flex-direction: column; .flex_col()
flex-col-reverse flex-direction: column-reverse; .flex_col_reverse()
  • flex-row automatically reverses item order inside dir_rtl(...).
  • Use flex_tw when switching between row and column via responsive or @container variants.

flex-wrap · justify-content · align-items · gap