Grid
Importβ
import { Grid } from '@resultadosdigitais/tangram-components'
Propertiesβ
fluidβ
childrenβ
<GridColumn />β
Importβ
import { GridColumn } from '@resultadosdigitais/tangram-components'
Propertiesβ
smallMobileβ
| Type | number |
|---|---|
| Default | null |
Descriptionβ
Sets the number of columns on screens small mobile.
Available values are range from 1 to 12.
mobileβ
| Type | number |
|---|---|
| Default | null |
Descriptionβ
Sets the number of columns on screens mobile.
Available values are range from 1 to 12.
tabletβ
| Type | number |
|---|---|
| Default | null |
Descriptionβ
Sets the number of columns on screens tablet.
Available values are range from 1 to 12.
desktopβ
| Type | number |
|---|---|
| Default | null |
Descriptionβ
Sets the number of columns on screens desktop.
Available values are range from 1 to 12.
largeDesktopβ
| Type | number |
|---|---|
| Default | null |
Descriptionβ
Sets the number of columns on screens large desktop.
Available values are range from 1 to 12.
offsetβ
withoutGutterβ
childrenβ
<GridRow />β
Importβ
import { GridRow } from '@resultadosdigitais/tangram-components'
Propertiesβ
reverseβ
| Type | bool | 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β
| Type | string | object |
|---|---|
| Default | null |
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β
| Type | string | object |
|---|---|
| Default | null |
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>