Grid
A multi-column grid layout. Supports theGrid.Row / Grid.Column / Grid.RowSpan / Grid.ColumnSpan attached properties.
Signature
Attributes
Attached properties
These only affect the direct children of aGrid:
As attributes:
Runtime behavior
- Renders as CSS Grid;
grid-template-columnsis generated fromColumns. - Without attached properties, cells fill in flow order.
- Each child is wrapped in a grid item; row and column spans are applied with inline styles.
- Row height comes from the content and
gap; there is no fixed row height.
Example
Gotchas
- Attached properties have no effect on elements that are not children of a
Grid. - Row and column indexes start at 0; out-of-range values create implicit tracks per CSS Grid rules, so control them explicitly.
- There is no auto-dense packing or masonry layout; use
Listfor variable-height lists.