Skip to main content

SimpleGrid

Description

A big abstraction of Grid functionality. Enable easy definition of basic grid layouts by defining either an amount of columns that items should adhere to or a minimum width that items can shrink to to rapidly build grid layouts.

Demo

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

Props

CSS PropExtendsRenderAs PropRenders by default
GridGrid
NameCSS Rule(s)Description
minChildWidthundefinedSets the minimum width children can get
columnsundefinedSets the amount of columns the grid can grow to
spacinggapSets the spacing between grid items (both x and y)
spacingXgrid-column-gapSets the spacing between columns
spacingYgrid-row-gapSets the spacing between rows