Skip to content

grid-auto-flow

Utilities for controlling how elements in a grid are auto-placed.

Class Effect
grid-flow-row grid-auto-flow: row;
grid-flow-col grid-auto-flow: column;
grid-flow-dense grid-auto-flow: dense;
grid-flow-row-dense grid-auto-flow: row dense;
grid-flow-col-dense grid-auto-flow: column dense;

Use grid-flow-row or grid-flow-col to control how auto-placed items fill the grid.

grid-auto-flow: Basic examplegrid-auto-flow: Basic example
if ui.div("grid grid-flow-row grid-cols-3 gap-4") {
tile("01", "col-span-2")
tile("02")
tile("03")
tile("04", "col-span-2")
tile("05")
}