Skip to main content

Grid

Description

A component that abstracts grid functionality. All valid grid dependent rules are implemented as props

Demo

import { Grid } from "@neui/layout";
Live Editor
Result
Loading...

Props

CSS PropExtendsRenderAs PropRenders by default
BoxBox
NameCSS Rule(s)Description
gridTemplateColumnsgrid-template-columnsSets the component's grid-template-columns
gridColumngrid-columnSets the component's grid-column
gridRowgrid-rowSets the component's grid-row
gapgapSets the component's gap
rowGaprow-gapSets the component's row-gap
columnGapcolumn-gapSets the component's column-gap
gridAutoColumnsgrid-auto-columnsSets the component's grid-auto-columns
gridAutoFlowgrid-auto-flowSets the component's grid-auto-flow
gridAutoRowsgrid-auto-rowsSets the component's grid-auto-rows
gridTemplateRowsgrid-template-rowsSets the component's grid-template-rows