<Grid
templateColumns="repeat(3, 1fr)"
templateRows="auto"
templateAreas="header header header"
gap="4"
columnGap="2"
rowGap="2"
alignContent="stretch"
alignItems="stretch"
justifyContent="start"
justifyItems="start"
placeContent="center"
placeItems="center"
autoColumns="auto"
autoRows="auto"
inline={false}
/>
Grid Container Props
In addition to the props listed in the tables below, the Grid component can accept any valid HTML div props.Other than the gap and responsive props, each of the props listed corresponds to a CSS property.autoColumns
CSSProperties[gridAutoColumns]
alignContent
CSSProperties[alignContent]
alignItems
CSSProperties[alignItems]
autoRows
CSSProperties[gridAutoRows]
columnGap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies to column-gap CSS property. See
Spacing gap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies to gap CSS property. See Spacing Applies display: inline-grid CSS property.
justifyContent
CSSProperties[justifyContent]
justifyItems
CSSProperties[justifyItems]
placeContent
CSSProperties[placeContent]
placeItems
CSSProperties[placeItems]
rowGap
"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "13" | "14"
Applies to row-gap CSS property. See
Spacing templateAreas
CSSProperties[gridTemplateAreas]
templateColumns
CSSProperties[gridTemplateColumns]
templateRows
CSSProperties[gridTemplateRows]
<Grid
gridArea="header"
gridColumn="1 / 3"
gridColumnEnd="3"
gridColumnStart="1"
gridRow="1 / 2"
gridRowEnd="2"
gridRowStart="1"
alignSelf="start"
justifySelf="start"
placeSelf="center"
order={0}
/>
Grid Item Props
These props are used to configure the Grid component as a grid item (with a parent grid container).Can also be used for grid item Grid.
gridColumn
CSSProperties[gridColumn]
gridColumnEnd
CSSProperties[gridColumnEnd]
gridColumnStart
CSSProperties[gridColumnStart]
gridRowEnd
CSSProperties[gridRowEnd]
gridRowStart
CSSProperties[gridRowStart]
justifySelf
CSSProperties[justifySelf]
Can also be used for grid item Grid.
Can also be used for grid item Grid.