Skip to content

Product card

The whole card is one link. Badges, colour dots, a second image on hover and a quick add button are all optional.

  • title, href, image, price: required
  • hoverImage: second image shown on hover
  • compareAt: original price, shows a sale price when higher than price
  • rating, reviewCount: optional star rating
  • badges: list of { label, tone }, using Tag tones
  • colors: list of { label, value }, shown as small dots
  • soldOut: fades the image and hides quick add (data-state="sold-out")
  • quickAdd: shows a quick add button over the image on hover
  • headingLevel: h2, h3 (default), h4
<ProductCard
title="Relaxed linen shirt"
href="/products/linen-shirt/"
image="/images/shirt.jpg"
hoverImage="/images/shirt-back.jpg"
price={68}
rating={4.6}
reviewCount={128}
badges={[{ label: "New", tone: "info" }]}
colors={[{ label: "Sand", value: "#d8c7a8" }, { label: "Navy", value: "#28344d" }]}
/>