Back to blocks
BlockeCommerceFree

Masonry Product Grid React component

A Pinterest-style product wall of mixed-height photos with a collection card, customer quotes and a shipping note woven in, category filters that reflow the columns with animation, a Cozy / Compact density switch, wishlist hearts and a hover bar to add to cart.

About the Masonry Product Grid component

Masonry Product Grid lays products out like a mood board: photos of different heights packed into columns, with a collection card, a couple of customer quotes and a shipping note mixed in so the wall feels curated rather than like a spreadsheet.

Filter by category and the tiles reflow into new columns with a smooth animation. Switch between Cozy and Compact to change how many columns there are. Each product shows its price at rest; hover it for the name, price and an add to cart button, and save it with the heart.

When to use it

Use it for lookbooks, 'new in' or 'fresh finds' sections, gift guides and lifestyle stores where browsing matters more than comparing specs.

Mix ratios on purpose (tall, square, wide) and keep editorial tiles to about one in five so products stay the focus.

Installation

Add the Masonry Product Grid component to your project with the shadcn CLI. It lands in components/masonry-product-grid.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/masonry-product-grid

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

Tabbed Product List
Free
Icon Category Nav
Free
Featured Categories Banner
Free
SEO-ready
Meet the Team
$4
Stat Feature
Free
Feature Split Section
$4