The Grid components consists of 3 different components: <Grid>
, <Row>
, <Col>
.
By default, it has a max content width of 1320px and gutters of 24px.
Name | Description | Type | Default Value |
---|
Groups a number of columns and can align them.
A row groups a number of columns and can align them
Name | Description | Type | Default Value |
---|---|---|---|
align | "start" | "end" | "center" | undefined | start |
A col component has a size to define how many columns it spans over.
The size prop can be used in two different ways:
fromL
breakpoint while it defaults to full width for smaller viewports.default
: refers to viewports from 0 - 480pxtheme.breakpoints.fromM
: refers to viewports from 480 - 1024pxtheme.breakpoints.fromL
: refers to viewports over 1024pxName | Description | Type | Default Value |
---|---|---|---|
children | A JSX node | node | n/a |
size | Size of column | union(object,number) | { default: 4, '@media (min-width: 1024px)': 12 } |
We also provide a debugging component that displays a fixed grid overlay. You can use it by importing it in development:
Name | Description | Type | Default Value |
---|---|---|---|
disabled | boolean | undefined | false | |
storybook | boolean | undefined | false |