# Stacked Panel Grid block

> Frame-Panel Product Card Grid with Color Swatch Image Swap and Wishlist Toggle

Responsive 2-column product collection where each tile is a ReUI Frame split into stacked FramePanels for media and content. Color swatches swap the hero image, a hover wishlist Button toggles, ReUI Badge marks sales. Shop, catalog, category pages.

- Type: Pro block
- Category: [Product Grid](https://web.dev.reui.io/blocks/ecommerce/product-grid.md)
- Page: https://web.dev.reui.io/blocks/ecommerce/product-grid/product-grid-2
- MCP: `get_block("product-grid-2")`
- Built with: Badge, Button, Frame
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A Frame per tile holding 2 stacked panels, a full bleed photo panel over a details panel with swatches and price

## Agent notes

- The media `FramePanel` is square with `p-0`, so each color `image` in `colors` must survive a square crop
- `ProductCard` passes `dense` as false to `Frame`, so the media and details panels stay separated by a gap
- The tile has no cart control, only `href` and `categoryHref` links; add the buy action to the details `FramePanel`

## When not to use

- Stacked panels around settings, contact or info content with nothing for sale: use [Frame](https://web.dev.reui.io/components/frame.md) (`get_component("frame")`)

## Install

```bash
npx shadcn@latest add @reui/product-grid-2
```

## About Product Grid blocks

### When to use

- A collection or category page body of photo tiles with prices, sale strikethroughs and a wishlist save
- Comparing colorways through swatches, or buying from the listing with a hover size picker or cart button
- Editorial or lookbook edits whose tiles add a story and specs, or fade to an on model photo on hover

### When not to use

- Dashboard tiles for KPIs, people or records in an app, with no price or buy control: use the [Card blocks](https://web.dev.reui.io/blocks/application/card.md)
- A bordered panel surface with header, body and footer slots for content not for sale: use [Frame](https://web.dev.reui.io/components/frame.md) (`get_component("frame")`)
- A listing with its own heading, sort and filter toolbar, breadcrumb or carousel rail: use the [Product Card blocks](https://web.dev.reui.io/blocks/ecommerce/product-card.md)

### Agent notes

- `ProductGrid` takes no props and maps `PRODUCTS` from data.ts, where each `price` is a preformatted string and every `href` is a hash placeholder
- The wishlist toggle only flips the local `likedProducts` set seeded from `DEFAULT_LIKED_PRODUCT_IDS`; persist it to your own wishlist store
- Each page.tsx adds a `min-h-svh` main and `ProductGrid` sets `max-w-6xl` with its own padding; drop both 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.
