# Ecommerce Product List: Masonry List

A masonry grid fitting product cards of varying heights into tight columns. Works well for mixed imagery in lookbooks and curated collections.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/masonry-list
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce), Free tier
- Group: [Product List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/masonry-list.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-product-list-masonry-list
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/ecommerce-product-list-masonry-list.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/ecommerce/product-list/masonry-list`

## About this block

Masonry List arranges twelve product cards into a multi-column grid where
each card's image carries its own aspect ratio, so the columns fill without
forced whitespace. Every card holds a product photo, an optional status
badge (New, Sale, Trending, or Limited), a title, a star rating with review
count, a current price alongside a struck-through original price, and an
Add to Cart button. A wishlist icon appears in the top corner when the card
is hovered. Card copy scales with a size tier: larger cards surface a short
description, smaller ones keep just the title and price.

The grid and the cards are fully independent of each other. You can swap
the product copy, drop or add badges, change the count of items, or adjust
the column breakpoints without affecting the overall layout. The badge
color and the card text size both derive from a small data array, so
updating them is a single edit per item.

## When to use

This layout fits a curated catalog where the imagery itself is the draw.
Because cards break out of a rigid row height, varied photography reads
as intentional rather than inconsistent, which suits a lookbook, a
seasonal collection, or an internal hiring portal showcasing roles with
distinct visual treatments. Compared to the standard
[Grid List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/grid-list), Masonry List trades
uniform alignment for visual rhythm, so it works better when cards carry
genuinely different content weights.

A natural flow around it on an Ecommerce page:

**Before**

- [Category Filters](https://www.shadcn-ui-blocks.com/blocks/ecommerce/category-filters) to let visitors
  narrow the catalog before they reach the list
- [Promo Sections](https://www.shadcn-ui-blocks.com/blocks/ecommerce/promo-sections) to open the page with
  a seasonal offer before the full product grid

**After**

- [Customer Reviews](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-customer-reviews) to
  reinforce trust after shoppers have browsed the catalog
- [Featured List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/featured-list) to
  spotlight standout items below the full collection

## What you can display

A concise intro sentence: this frame handles any catalog where card heights
naturally vary, not just fashion or decor.

- **Open roles with rich media.** On a hiring portal, each card can
  represent a position with a team photo, role title, and a quick apply
  button replacing Add to Cart.
- **Sale and new arrival badges.** The four built-in badge types map to
  distinct color treatments, so shoppers spot promotional items at a glance
  without scanning every card.
- **Mixed content weights.** Large cards surface a description and a bigger
  price; small cards strip back to title and price only, keeping the page
  dense without sacrificing clarity.

> Tip: keep images consistent in subject matter even if their aspect ratios
> differ; visual chaos comes from mixed subjects, not mixed heights.

## More in Ecommerce Product List

- [Compact List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/compact-list)
- [Comparison List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/comparison-list)
- [Featured List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/featured-list)
- [Filter List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/filter-list)
- [Gallery List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/gallery-list)
- [Grid List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/grid-list)
- [Table List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/table-list)
- [Timeline List](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-list/timeline-list)
