GridView

View Source

Lay out children in columns and rows. Wraps CSS grid styles in a simple API. To learn more about how you can use CSS grid visit learncssgrid.com.

A
B
Header
Content
Sidebar
Footer

Props

Accepts all valid HTML attributes.

alignment'start' | 'end' | 'center' | 'stretch'

Aligns content in a grid item along the column axis. Maps to CSS alignItems property.

asany

Render custom component or HTML element tag. (Defaults to a <div> element).

The size of implicit grid columns. Maps to CSS gridAutoColumns property.

autoFlow'column' | 'row' | 'dense'

The algorithm used to implicitly place grid items. Maps to CSS gridAutoFlow property.

autoRowsstring

The size of implicit grid rows. Maps to CSS gridAutoRows property.

Any direct children can use the column|Start|End or row|Start|End shorthand properties to place themselves on the grid.

columnSpacingnumber | string

The amount of space between columns. Maps to CSS gridColumnGap property.

columnsArray | string

The columns of the grid. Maps to CSS gridTemplateColumns property.

inlineboolean

If true, sets display: inline-grid, otherwise it defaults to display: grid

Gain access to the internal ref

Describes props at different breakpoints. Read about mediaQueries.

rowSpacingnumber | string

The amount of space between rows. Maps to CSS gridRowGap property.

rowsArray | string

The rows of the grid. Maps to CSS gridTemplateRows property.

spacingnumber | string

The amount of space between children. Maps to CSS gap property.

variantsobject

Describes styles at various points in time. Read about variants.