Skip to main content

Module grid

Module grid 

Source
Expand description

Grid tracks, placements, and automatic flow.

Structs§

GridPlacement
Placement of a grid item, with optional row and column indices.
GridStyle
Layout style for a grid container.

Enums§

GridFlow
Direction in which auto-placed grid items flow.
Track
Size of a single grid column or row.

Functions§

auto_cells
Returns the (column, row) cell for each auto-placed item.
resolve_tracks
Resolves track sizes to concrete lengths.
resolve_tracks_clamped
Resolves track sizes with optional per-track min and max limits.
track_offsets
Returns the starting offset of each track, including gaps.