Luke UI
GitHub repository

Grid

Arrange direct children in an equal explicit column grid.

Grid lays out direct children in a fixed number of equal columns. Use it when you know how many columns the layout should have. Read Layout to choose a layout component.

Prefer AutoGrid when columns should grow from a minimum inline size instead of an explicit count.

Grid: Basic
Loading Grid: Basic example

Spanning columns

Child placement belongs to the child. Use Box grid-placement props such as gridColumn when an item should span more than one track. Grid itself does not expose a span API.

Grid: Spanning columns
Loading Grid: Spanning columns example

Responsive columns and spans

columns accepts a responsive object with a required initial value. Child spans must fit the active explicit column count at every responsive condition. A span that is valid at bp768 can overflow the initial column count if those values are not kept in sync.

Grid: Responsive columns and spans
Loading Grid: Responsive columns and spans example

Choose the rendered element

Grid uses Box's elementType and render contract.

Grid: List
Loading Grid: List example

API

GridProps also accepts compatible DOM and ARIA attributes and event handlers for its rendered element.

Prop

Type