Std.Ui.Grid
Std.Ui.Grid — explicit CSS-grid track lists for `Std.Ui` (v0.15.57+).
Types
type Track
Values
auto : Track
An `auto` track — sized to the largest child along that axis.
columns : List Track -> Attribute msg
Set only columns — convenience for the common case.
fr : Int -> Track
N flexible units (`<N>fr`). The browser distributes available
maxContent : Track
`max-content` — the widest size the content prefers (full
minContent : Track
`min-content` — narrowest size the track's content can take
minmax : Track -> Track -> Track
`minmax(low, high)` — the track grows between two bounds. The
px : Int -> Track
A fixed pixel-width track.
repeat : Int -> Track -> Track
`repeat(<n>, <track>)` — repeat a track shape N times. Use when
repeatAutoFill : Track -> Track
`repeat(auto-fill, <track>)` — repeat as many times as fit, but
repeatAutoFit : Track -> Track
`repeat(auto-fit, <track>)` — repeat as many times as fit, then
rows : List Track -> Attribute msg
Set only rows.
trackToCss : Track -> String
Lower a single Track to its CSS string fragment.
tracks : List Track -> List Track -> Attribute msg
Set both columns + rows explicitly. Pass `[]` for either axis to
tracksToCss : List Track -> String
Lower a track list to a space-joined CSS string. Empty list