Search Plus UI Blocks

Find a block, a category or a site

Product cards with colour swatches and hover photoproduct-grid-swatch-cards

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/product-grid-swatch-cards.json

Product-grid · 5 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/product-grid-swatch-cards
Open ↗

Default content

{
  "eyebrow": "In more than one colour",
  "title": "Pick a glaze, a linen or a timber, and see it before you buy",
  "description": "Every colour here is photographed as it comes out of the kiln or off the loom, in the same north light.",
  "currency": "GBP",
  "products": [
    {
      "name": "Hollin tumbler, set of 4",
      "href": "#",
      "category": "Tableware",
      "material": "Speckled stoneware, oat satin glaze",
      "price": 48,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Speckled stoneware tumblers stacked on a white shelf"
        },
        {
          "src": "https://images.unsplash.com/photo-1610701596061-2ecf227e85b2?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Hollin tumblers on an oak table beside cream bowls and serving boards"
        },
        {
          "src": "https://images.unsplash.com/photo-1610701596295-4dc5d6289214?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Cream tableware and a striped linen napkin laid on a table"
        },
        {
          "src": "https://images.unsplash.com/photo-1493106641515-6b5631de4bb9?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Clay-covered hands throwing a pot on the wheel"
        }
      ],
      "swatches": [
        {
          "name": "Oat",
          "color": "oklch(0.86 0.035 80)",
          "image": {
            "src": "https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Oat-glazed Hollin tumblers stacked on a white shelf"
          }
        },
        {
          "name": "Honey",
          "color": "oklch(0.72 0.11 70)",
          "image": {
            "src": "https://images.unsplash.com/photo-1610701596061-2ecf227e85b2?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Honey-glazed tumblers on an oak table beside cream bowls"
          }
        },
        {
          "name": "Chalk",
          "color": "oklch(0.95 0.01 90)",
          "image": {
            "src": "https://images.unsplash.com/photo-1610701596295-4dc5d6289214?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Chalk-glazed tumblers with a striped linen napkin"
          }
        }
      ],
      "badge": "Bestseller",
      "rating": {
        "value": 4.9,
        "count": 212
      }
    },
    {
      "name": "Edale linen cushion cover",
      "href": "#",
      "category": "Linen",
      "material": "Stonewashed Lithuanian linen, 230 gsm",
      "price": 34,
      "compareAt": 42,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1616627561950-9f746e330187?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Striped and rust linen cushions on an oak bed"
        }
      ],
      "swatches": [
        {
          "name": "Rust",
          "color": "oklch(0.55 0.13 45)",
          "image": {
            "src": "https://images.unsplash.com/photo-1616627561950-9f746e330187?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Rust linen cushion covers on an oak bed"
          }
        },
        {
          "name": "Flax stripe",
          "color": "oklch(0.83 0.04 85)",
          "image": {
            "src": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "A flax-striped cushion on a sofa by a window full of plants"
          }
        },
        {
          "name": "Sage",
          "color": "oklch(0.7 0.05 140)",
          "image": {
            "src": "https://images.unsplash.com/photo-1616046229478-9901c5536a45?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Sage linen cushions on a sofa in a pale living room"
          }
        }
      ],
      "badge": "Autumn sale",
      "rating": {
        "value": 4.8,
        "count": 119
      }
    },
    {
      "name": "Stanage linen duvet set",
      "href": "#",
      "category": "Linen",
      "material": "Stonewashed linen, 170 gsm, double",
      "price": 185,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Rumpled white linen bedding beside an oak side table"
        }
      ],
      "swatches": [
        {
          "name": "Chalk",
          "color": "oklch(0.95 0.01 90)",
          "image": {
            "src": "https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Rumpled chalk linen bedding beside an oak side table"
          }
        },
        {
          "name": "Flax",
          "color": "oklch(0.83 0.04 85)",
          "image": {
            "src": "https://images.unsplash.com/photo-1571508601891-ca5e7a713859?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Flax linen bedding in a warm, lamp-lit bedroom"
          }
        },
        {
          "name": "Clay",
          "color": "oklch(0.66 0.08 50)",
          "image": {
            "src": "https://images.unsplash.com/photo-1586105251261-72a756497a11?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Clay-coloured linen bedding under a framed print"
          }
        }
      ],
      "rating": {
        "value": 4.8,
        "count": 143
      }
    },
    {
      "name": "Scar bottle vase",
      "href": "#",
      "category": "Vases",
      "material": "Grogged stoneware, unglazed ash finish",
      "price": 42,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "Three matte grey bottle vases holding dried seed heads"
        }
      ],
      "swatches": [
        {
          "name": "Ash",
          "color": "oklch(0.78 0.01 90)",
          "image": {
            "src": "https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Three ash-grey bottle vases holding dried seed heads"
          }
        },
        {
          "name": "Soot",
          "color": "oklch(0.32 0.01 60)",
          "image": {
            "src": "https://images.unsplash.com/photo-1597696929736-6d13bed8e6a8?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Soot-dark bottle vases on a shelf of finished pots"
          }
        }
      ],
      "rating": {
        "value": 4.7,
        "count": 58
      }
    },
    {
      "name": "Kiln everyday mug",
      "href": "#",
      "category": "Tableware",
      "material": "Porcelain, clear gloss inside, 350 ml",
      "price": 22,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "A plain white porcelain mug in soft side light"
        }
      ],
      "swatches": [
        {
          "name": "Chalk",
          "color": "oklch(0.95 0.01 90)",
          "image": {
            "src": "https://images.unsplash.com/photo-1514228742587-6b1558fcca3d?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "A chalk-white porcelain mug in soft side light"
          }
        },
        {
          "name": "Oat",
          "color": "oklch(0.86 0.035 80)",
          "image": {
            "src": "https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "Oat-glazed mugs stacked on a white shelf"
          }
        }
      ],
      "rating": {
        "value": 4.8,
        "count": 301
      }
    },
    {
      "name": "Fell wool throw",
      "href": "#",
      "category": "Linen",
      "material": "Undyed Bluefaced Leicester wool, 130 × 180 cm",
      "price": 120,
      "compareAt": 150,
      "images": [
        {
          "src": "https://images.unsplash.com/photo-1578500494198-246f612d3b3d?auto=format&fit=crop&w=900&h=1100&q=80",
          "alt": "A dark wool throw draped over a tan sofa"
        }
      ],
      "swatches": [
        {
          "name": "Charcoal",
          "color": "oklch(0.3 0.005 60)",
          "image": {
            "src": "https://images.unsplash.com/photo-1578500494198-246f612d3b3d?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "A charcoal wool throw draped over a tan sofa"
          }
        },
        {
          "name": "Moss",
          "color": "oklch(0.48 0.06 130)",
          "image": {
            "src": "https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=900&h=1100&q=80",
            "alt": "A moss-green throw on a velvet sofa"
          }
        }
      ],
      "badge": "Autumn sale",
      "rating": {
        "value": 4.9,
        "count": 88
      }
    }
  ],
  "cardLabels": {
    "wasPrice": "Was",
    "reviews": "{count} reviews",
    "colours": "{count} colours"
  },
  "filters": {
    "label": "Filter by shelf",
    "allLabel": "Everything",
    "saleLabel": "Autumn sale only",
    "sortLabel": "Sort by",
    "sortOptions": [
      {
        "value": "featured",
        "label": "Shop's picks"
      },
      {
        "value": "price-asc",
        "label": "Price, low to high"
      },
      {
        "value": "price-desc",
        "label": "Price, high to low"
      },
      {
        "value": "rating",
        "label": "Best reviewed"
      }
    ],
    "countLabel": "{count} pieces",
    "emptyTitle": "Nothing on this shelf just now",
    "emptyBody": "The sale pieces in this shelf have sold through. New firings land on the first Friday of the month.",
    "resetLabel": "Show everything"
  },
  "viewAll": {
    "label": "See every colourway",
    "href": "#",
    "variant": "secondary"
  },
  "swatchLabels": {
    "group": "Colours of {name}",
    "shownIn": "Shown in {colour}"
  },
  "cart": {
    "title": "Your basket",
    "shipping": {
      "freeFrom": 75,
      "remaining": "{amount} more for free delivery",
      "reached": "Free delivery, wrapped in our paper"
    },
    "labels": {
      "close": "Close basket",
      "count": "{count} pieces",
      "countOne": "{count} piece",
      "quantity": "Quantity",
      "decrease": "One fewer",
      "increase": "One more",
      "remove": "Remove",
      "subtotal": "Subtotal",
      "subtotalNote": "VAT included · delivery at checkout",
      "emptyTitle": "Your basket is empty",
      "emptyBody": "The autumn shelf has new firings from Ruth's kiln, thrown in batches of forty.",
      "add": "Quick add",
      "addNamed": "Add {name} to basket"
    },
    "viewBag": {
      "label": "View basket",
      "href": "#"
    },
    "checkout": {
      "label": "Checkout",
      "href": "#"
    }
  }
}