CardGrid

CardGrid lays out a set of Card or LinkCard children on a CSS grid, responsive by default : the grid collapses to one column on narrow viewports.

Basic use

Column counts

Columns controls the desktop column count. Common values are 2, 3, 4. The layout still collapses to one column on mobile regardless.

Mixing children

CardGrid doesn't care what kind of card lives inside it : you can mix Card and LinkCard, or drop custom markup in.

Props

Prop Type Default Description
Columns int 2 Desktop column count. The CSS falls back to a single column on narrow viewports.
ChildContent RenderFragment? Cards to lay out.

See also