No replacement is currently generally available.
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.
<Grid><Row align="center"><Col size={3}>Size: 3</Col><Col size={7}>Size: 7</Col></Row><Row align="flex-start"><Col size={2}>Size: 2</Col><Col size={5}>Size: 5</Col></Row></Grid>
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 |
undefined
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 1024pxWe also provide a debugging component that displays a fixed grid overlay. You can use it by importing it in development:
<DebugGrid />
Name | Description | Type | Default Value |
---|---|---|---|
disabled | boolean | undefined | false | |
storybook | boolean | undefined | false |