Placement model
The grid can fill rows or columns. Dense variants reuse earlier empty cells when later children fit, which can change visual order relative to source order. Choose dense flow only when compact packing matters more than strict positional predictability.Column modes
- Fixed count
- Auto fit
- Auto fill
Set an explicit number of columns. The grid derives available track space from the frame’s content box.
Track sizing
Columns and rows can use Fill or Hug behavior. Fill tracks divide available space; hug tracks follow content or explicit sizes. For fill tracks, per-track weights act like fractional units: a column weight of2 receives twice the share of a neighboring weight of 1, after fixed space, padding, and gaps are accounted for.