For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A shadcn Card per tile in 2 columns, where picking a color swatch swaps the photo and names the color
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
- A saved items page with bulk actions, stock status and price drop signals: use the Wishlist blocks
- Dashboard tiles for KPIs, people or records in an app, with no price or buy control: use the Card blocks
- A bordered panel surface with header, body and footer slots for content not for sale: use the Frame component
- A listing with its own heading, sort and filter toolbar, breadcrumb or carousel rail: use the Product Card blocks
Agent notes
DEFAULT_SELECTED_COLORSmaps a product id to a color name; a name with no match falls back to the first entry ofcolors- Each swatch dot is filled by the
classNameon itscolorsentry, and every entry also needs animageandimageAlt - The tile has no cart control, only
hrefandcategoryHreflinks, so add a buy action if shoppers purchase from the grid ProductGridtakes no props and mapsPRODUCTSfrom data.ts, where eachpriceis a preformatted string and everyhrefis a hash placeholder- The wishlist toggle only flips the local
likedProductsset seeded fromDEFAULT_LIKED_PRODUCT_IDS; persist it to your own wishlist store - Each page.tsx adds a
min-h-svhmain andProductGridsetsmax-w-6xlwith its own padding; drop both inside your storefront layout
https://web.dev.reui.io/blocks/ecommerce/product-grid/product-grid-1.mdget_block("product-grid-1")npx shadcn@latest add @reui/product-grid-1Shadcn Swatch Swap Grid Block
Ecommerce Product Grid with Color Swatches, Hover Wishlist, and Sale Price Badges. Part of the ReUI Shadcn eCommerce Product Grid blocks collection.
Responsive 2x2 product collection grid: square media with hover zoom, hover-revealed wishlist toggle, color swatches that swap the image, and strikethrough compare-at price. ReUI Badge, shadcn Card, Button, Item. For shop, catalog, store listing.
It is composed from Badge, Button, Card, Item, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Swatch Swap Grid Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn eCommerce Product Grid blocks to assemble a full screen instead of a single section.
All Shadcn eCommerce Product Grid Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Stacked Panel Grid Frame-Panel Product Card Grid with Color Swatch Image Swap and Wishlist Toggle
- Add-to-Cart Grid Frameless ecommerce product grid with per-card Add to Cart and hover wishlist toggle
- Numbered Story Grid Editorial product grid with numbered horizontal chapter tiles, story line and 3-up specs
- Quick Size Grid Ecommerce product grid with hover quick-buy panel and in-stock-aware size picker
- Shop-the-Look Grid Apparel 2x2 product grid with hover lifestyle image cross-fade and expanding color swatch pill
Related Shadcn eCommerce Block Categories
- Category Card (6) Category cards with featured products, banners, and subcategory navigation.
- Checkout (7) Checkout flows with shipping details, payment forms, and order confirmation steps.
- Comparison (6) Product comparison tables with side-by-side feature and specification layouts.
- Coupon (6) Coupon code input fields, discount badges, and promotional offer display blocks.
- Filter Sidebar (7) Filter and facet sidebars for refining product searches by price, size, and attributes.
- Product Card (10) E-commerce product cards with images, pricing, variants, and add-to-cart actions.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Swatch Swap Grid block?
Use it for a shadcn Card per tile in 2 columns, where picking a color swatch swaps the photo and names the color.
The Product Grid category fits:
- 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
For a saved items page with bulk actions, stock status and price drop signals, use the Wishlist blocks. For dashboard tiles for KPIs, people or records in an app, with no price or buy control, use the Card blocks. For a bordered panel surface with header, body and footer slots for content not for sale, use the Frame component. For a listing with its own heading, sort and filter toolbar, breadcrumb or carousel rail, use the Product Card blocks.
What is the Swatch Swap Grid block built with?
Can I restyle the Swatch Swap Grid block?
How should I use Shadcn product grid blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.