Grids

The API

Specifies the size of an implicitly-created grid column trackarrow-up-right.

Type: string | number

Conversion

// CSS
- grid-auto-columns: 100px;

// React Native
+ gridAutoColumns: 100,

Controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the grid.

Type: string

Conversion

Specifies the size of an implicitly-created grid row track.

Type: string

Conversion

Specifies a grid item’s end position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the block-end edge of its grid areaarrow-up-right.

Type: string | number

Conversion

Sets the size of the gap (gutterarrow-up-right) between an element's columns.

Type: string | number

Conversion

Specifies a grid item’s start position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement. This start position defines the block-start edge of the grid areaarrow-up-right.

Type: 'row' | 'column' | 'dense'

Conversion

Specifies a grid item’s end position within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-end edge of its grid areaarrow-up-right.

Type: string | number

Conversion

Sets the size of the gap (gutterarrow-up-right) between an element's grid rows.

Type: string | number

Conversion

Specifies a grid item’s start position within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start edge of its grid areaarrow-up-right.

Type: string | number

Conversion

Defines the line names and track sizing functions of the grid columnsarrow-up-right.

Type: string | number | Array<string | number>

Conversion

Defines the line names and track sizing functions of the grid rowsarrow-up-right.

Type: string | number | Array<string | number>

Conversion

Specifies named grid areasarrow-up-right.

Type: string | 'none'

Conversion

Last updated