Skip to main content

Grid

Import​

import { Grid } from '@resultadosdigitais/tangram-components'

Properties​

fluid​

Typebool
Defaultfalse

Description​

Makes container full-width.

children​

Typenode

Description​

Sets children.

<GridColumn />​

Import​

import { GridColumn } from '@resultadosdigitais/tangram-components'

Properties​

smallMobile​

Typenumber
Defaultnull
Description​

Sets the number of columns on screens small mobile.

Available values are range from 1 to 12.

mobile​

Typenumber
Defaultnull
Description​

Sets the number of columns on screens mobile.

Available values are range from 1 to 12.

tablet​

Typenumber
Defaultnull
Description​

Sets the number of columns on screens tablet.

Available values are range from 1 to 12.

desktop​

Typenumber
Defaultnull
Description​

Sets the number of columns on screens desktop.

Available values are range from 1 to 12.

largeDesktop​

Typenumber
Defaultnull
Description​

Sets the number of columns on screens large desktop.

Available values are range from 1 to 12.

offset​

Typenumber | object
Default{}
Description​

Sets the number of the offset columns.

withoutGutter​

Typebool
Defaultfalse
Description​

Removes the gutter.

children​

Typenode
Defaultnull
Description​

Sets children.

<GridRow />​

Import​

import { GridRow } from '@resultadosdigitais/tangram-components'

Properties​

reverse​

Typebool | array
Default[]
Description​

Reverses the direction of the row.

// Can be an array. Reverses for only included viewports.
<Grid.Row reverse={[Grid.viewports.mobile, Grid.viewports.desktop]}></Grid.Row>

// When is a boolean, reverses for all breakpoints.
<Grid.Row reverse></Grid.Row>

align​

Typestring | object
Defaultnull
Description​

Align the content vertically.

You can use all CSS align-items values: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items

// Can be a string:
<Grid.Row align="flex-end"></Grid.Row>

// Or an object:
<Grid.Row align={{smallMobile: 'center', desktop: 'flex-end'}}></Grid.Row>

justify​

Typestring | object
Defaultnull
Description​

Align the content horizontally.

You can use all CSS justify-content values: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content

// Can be a string:
<Grid.Row justify="center"></Grid.Row>

// Or an object:
<Grid.Row justify={{smallMobile: 'center', desktop: 'flex-end'}}></Grid.Row>

children​

Typenode
Description​

Sets children.

Feedback​