v14.2.0

Playroom

Github

GridView

View Source

Lay out children in columns and rows. Wraps CSS grid styles in a simple API. Any direct children can use the column|Start|End or row|Start|End shorthand properties to place themselves on the grid. To learn more about how you can use CSS grid visit learncssgrid.com.

A
B
Copy
Edit
Header
Content
Sidebar
Footer
Copy
Edit

Props

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

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

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

autoRowsstring

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

columnsArray | string

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

rowsArray | string

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

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

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

spacingnumber

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

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

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

  • Props
PreviousColumnViewNextPagerView