Skip to content

grid-auto-flow

Utilities for controlling how auto-placed items fill cells in a CSS Grid.

Flexbox & GridTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating grid-auto-flow
ISS preview for grid-auto-flow
use iss::{grid_tw, tw};
let bento = grid_tw(tiles, tw!("grid-cols-4 grid-flow-dense gap-3"));
Tailwind Class CSS Property / Effect iss::typed Builder
grid-flow-row grid-auto-flow: row; .grid_flow_row()
grid-flow-col grid-auto-flow: column; .grid_flow_col()
grid-flow-dense grid-auto-flow: dense; .grid_flow_dense()
grid-flow-row-dense grid-auto-flow: row dense; .grid_flow_row_dense()
grid-flow-col-dense grid-auto-flow: column dense; .grid_flow_col_dense()
  • grid-flow-dense backfills earlier open slots when a wider col-span-* child wraps to the next row.

grid-template-columns · grid-column · grid-row