# Quick Buy Card block

> Quick-buy product card with image carousel, sale pricing, and size picker

Horizontal quick-buy ecommerce card with image carousel, low-stock badge, strikethrough sale price, size grid, and add-to-bag plus wishlist actions. ReUI Badge; shadcn Button, Card, Carousel, Checkbox, Field, Tooltip. Shop, store, product page.

- 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-3
- MCP: `get_block("product-card-3")`
- Built with: Badge, Button, Card, Carousel, Checkbox, Field, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

One apparel quick buy with a looping 2 photo carousel, an XS to XL size grid and a size guide link beside the size label

## Agent notes

- `product` is a single hard-coded object (`images`, `sizes`, `price`, `stockLabel`); replace it with the item you sell
- Add to Bag has no handler and the Wishlist button only flips `wishlisted`; wire both to your cart and read `selectedSize` when you do
- `stockLabel` and `stockHint` are fixed strings, so the 5 left badge does not follow `selectedSize`; derive it from inventory

## When not to use

- An item chosen by finish rather than size, shown with a star rating and review link: use [Featured Product](https://web.dev.reui.io/blocks/ecommerce/product-card/product-card-5.md) (`get_block("product-card-5")`)

## Third-party libraries

- Embla Carousel v8: [API reference](https://www.embla-carousel.com/docs/v8/api), [docs](https://www.embla-carousel.com/docs/v8/get-started/react), through shadcn Carousel

## Install

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

## 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.
