Skip to main content

Grid

Import

import { Grid } from "@sparrowengg/twigs-react"

Grid is a wrapper around HTML element div, but comes with grid properties.

Usage

Result
Loading...
<Grid>
  <Box css={{
    height: 100,
    backgroundColor: '$primary500'
  }}
  />
  <Box css={{
    height: 100,
    backgroundColor: '$warning500'
  }}
  />
  <Box css={{
    height: 100,
    backgroundColor: '$accent100'
  }}
  />
</Grid>

Props

PropertyDescriptionTypeDefault
width
templateColumns
templateRows
templateAreas
gaparray
repeatfill repeat