Grid

Grid with a set number of equal-width columns, adjustable gaps and styling for each cell. Cells can optionally fade in one after another in reading order.

Preview

Installation

npx @lumioui/cli add grid

Usage

import { Grid } from "@/components/ui/grid/grid";
<Grid />

Examples

Categories

A podcast app's "Browse" grid: two columns of colour tiles where the colour is the content (genre art), chrome stays neutral.

API reference

Prop Type Default
columns number

Number of columns. Default 2.

2
gap number

Gap between cells in px.

0
className string —
cellClassName string

Extra classes for each cell wrapper.

—
cascade boolean

Cells switch on in reading order at mount (dim → on, 40ms apart). Default false.

false
cascadeDelay number

Wait before the first cell switches on, in ms — to follow a header band. Default 0.

0
children React.ReactNode —