Skip to content

Grid

An equal-column grid for cards and tiles.

Group: Layout · Kind: macro · in the lite catalog

example
Cell 1Grid item
Cell 2Grid item
Cell 3Grid item
Cell 4Grid item
Cell 5Grid item
Cell 6Grid item

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-grid on Web
exponential-ui-grid on iOS
exponential-ui-grid on Android
exponential-ui-grid on Desktop
Prop Type Required Bindable Description
columns number – – Equal columns 1–6 ({base: 1, md: 2, lg: 3}). Default 2. Responsive: takes a per-breakpoint object.
gap none | xs | sm | md | lg | xl – – The space between cells. Default "md". Responsive: takes a per-breakpoint object.
style style – – Extra Box styles merged over the grid’s own.

None.

None.

many

No basic catalog component maps here.

Box

Role: none

none (layout only)

Not focusable; no keys.

Recipe parts: Grid/root

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Box · Stack · Card · Separator · List · Resizable · ScrollArea · Sidebar