# Masonry Gallery block

> Masonry product gallery with hover-reveal detail overlay and filter or sort popover toolbar

Image-led shop page: masonry columns of mixed-ratio photos revealing a product detail card on hover or focus, with discount badges, wishlist heart toggle, and a popover filter and sort bar. ReUI Badge, shadcn Popover, Select, Switch.

- Type: Pro block
- Category: [Product Card](https://web.dev.reui.io/blocks/ecommerce/product-card.md)
- Page: https://web.dev.reui.io/blocks/ecommerce/product-card/product-card-6
- MCP: `get_block("product-card-6")`
- Built with: Badge, Breadcrumb, Button, Field, Popover, Select, Switch
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A masonry wall of mixed ratio photos whose details slide in on hover, filtered by signal and price band with a live piece count

## Agent notes

- Every `products` entry needs an `imageRatioClassName`; the photo is absolutely positioned, so the tile takes its height from that ratio class
- The Signal filter matches `contentBadge` label text (New, Trending, or any label containing left) and Price uses `priceValue`; use real fields
- The wishlist heart stays hidden until a tile is hovered or focused unless `liked` is set, and `likedProducts` lives in memory only

## When not to use

- A page for one item with its gallery, variant picker and reviews: use [Size Picker Detail](https://web.dev.reui.io/blocks/ecommerce/product-detail/product-detail-1.md) (`get_block("product-detail-1")`)
- A uniform grid with star ratings and an add to cart on every tile: use [Rated Product Grid](https://web.dev.reui.io/blocks/ecommerce/product-card/product-card-8.md) (`get_block("product-card-8")`)

## Install

```bash
npx shadcn@latest add @reui/product-card-6
```

## About Product Card blocks

### When to use

- A catalog or collection page of items for sale, from a plain tile grid to one with filters and sort
- A similar items or latest arrivals row that pages through 4 tiles at a time with arrow buttons
- A single item quick buy panel with a size or finish picker beside add to bag and wishlist buttons

### When not to use

- Dashboard or admin tiles for metrics, records or settings, with nothing for sale: use the [Card blocks](https://web.dev.reui.io/blocks/application/card.md)
- Departments or collections to browse into, with no per item price or buy control: use the [Category Card blocks](https://web.dev.reui.io/blocks/ecommerce/category-card.md)
- A full page for one item with its gallery, spec tables, reviews and related items: use the [Product Detail blocks](https://web.dev.reui.io/blocks/ecommerce/product-detail.md)

### Agent notes

- `ProductCard` takes no props and renders demo items defined in its own files; add a prop to pass in your catalog
- Every `price` and `compareAtPrice` is a preformatted dollar string; format amounts and currency before you pass them
- Each page.tsx wraps `ProductCard` in a padded `min-h-svh` wrapper; strip it when the block sits inside your storefront layout

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
