Grid

A responsive grid layout component

Preview

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6

Installation

Usage

API Reference

PropTypeDefaultDescription
childrenReact.ReactNode-Child elements to display in the grid
size'tiny' | 'small' | 'medium' | 'large''medium'Grid density preset
classNamestring''Additional CSS classes
...propsReact.HTMLAttributes<HTMLDivElement>-All standard div attributes

Grid Sizes

SizeDefaultsmmdlgxl2xl
tiny4456710
small234568
medium123456
large122344

The gridSizeClasses map is also exported for use with custom components.

Example