Develop ultra fast with Prismane 🎉

Grid API

Learn about the Grid component's props and CSS classes.

Import

import { GridProps } from "@prismane/core";

Props

Grid

Grid extends Box component's props.

NameTypeDescriptionDefault
templateColumns1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / noneThe gridTemplateColumns CSS property of the grid.-
templateRows1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / noneThe gridTemplateRows CSS property of the grid.-
flowrow / column / dense / row-dense / column-denseThe gridAutoFlow CSS property of the grid.-
autoColumnsauto / min / max / frThe gridAutoColumns CSS property of the grid.-
autoRowsauto / min / max / frThe gridAutoRows CSS property of the grid.-
gapstring / numberThe gap CSS property of the grid.-

Grid.Item

Grid.Item extends Flex component's props.

NameTypeDescriptionDefault
columnStart1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13/ autoThe gridColumnStart CSS property of the grid item.-
columnEnd1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13/ autoThe gridColumnEnd CSS property of the grid item.-
columnSpan1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13/ fullThe gridColumnSpan CSS property of the grid item.-
rowStart1 / 2 / 3 / 4 / 5 / 6 / 7 / autoThe gridRowStart CSS property of the grid item.-
rowEnd1 / 2 / 3 / 4 / 5 / 6 / 7 / autoThe gridRowEnd CSS property of the grid item.-
rowSpan1 / 2 / 3 / 4 / 5 / 6 / 7 / fullThe gridRowSpan CSS property of the grid item.-
gapstring / numberThe gap CSS property of the grid item.-

CSS

Grid

Grid extends Box component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneGrid-rootThe grid container.

Grid.Item

Grid.Item extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneGridItem-rootThe grid item.