Product comparison tableproduct-compare-table
Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/product-compare-table.jsonProduct · 6 variants
← → to step through · + on a thumbnail to compare side by side (up to 3)
/preview/product-compare-table
Open ↗Default content
{
"eyebrow": "Compare vases",
"title": "Four vases, four makers. Which one holds what you have in mind?",
"description": "Two hold water for fresh stems, two are for dried grasses. Everything else is a matter of shelf and taste.",
"currency": "GBP",
"products": [
{
"product": {
"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)"
},
{
"name": "Soot",
"color": "oklch(0.32 0.01 60)"
}
],
"rating": {
"value": 4.7,
"count": 58
}
}
},
{
"product": {
"name": "Brimham vessel",
"href": "#",
"category": "Vases",
"material": "Hand-built raw clay, beeswax sealed",
"price": 72,
"images": [
{
"src": "https://images.unsplash.com/photo-1631125915902-d8abe9225ff2?auto=format&fit=crop&w=900&h=1100&q=80",
"alt": "Three hand-built unglazed clay vessels on a plaster plinth"
}
],
"badge": "Limited run",
"rating": {
"value": 4.6,
"count": 22
}
}
},
{
"product": {
"name": "Lune bud vase, pair",
"href": "#",
"category": "Vases",
"material": "Slip-cast porcelain, matte chalk finish",
"price": 32,
"images": [
{
"src": "https://images.unsplash.com/photo-1490312278390-ab64016e0aa9?auto=format&fit=crop&w=900&h=1100&q=80",
"alt": "Two white bud vases with cherry blossom on an oak tray"
}
],
"rating": {
"value": 4.7,
"count": 41
}
},
"highlight": "Best for gifts"
},
{
"product": {
"name": "Turned ash bud vases, pair",
"href": "#",
"category": "Vases",
"material": "Lathe-turned ash, food-safe oil, glass insert",
"price": 38,
"images": [
{
"src": "https://images.unsplash.com/photo-1584589167171-541ce45f1eea?auto=format&fit=crop&w=900&h=1100&q=80",
"alt": "Two turned wooden bud vases holding green leaves"
}
],
"rating": {
"value": 4.7,
"count": 49
}
}
}
],
"groups": [
{
"title": "Use",
"rows": [
{
"label": "Holds water",
"values": [
false,
false,
true,
true
]
},
{
"label": "Best for",
"values": [
"Dried seed heads",
"On its own",
"Single stems",
"Garden sprigs"
]
},
{
"label": "Dishwasher safe",
"values": [
false,
false,
true,
false
]
}
]
},
{
"title": "Making",
"rows": [
{
"label": "Material",
"values": [
"Grogged stoneware",
"Raw clay",
"Porcelain",
"Turned ash"
]
},
{
"label": "Finish",
"values": [
"Unglazed ash",
"Beeswax sealed",
"Matte chalk",
"Food-safe oil"
]
},
{
"label": "Made by",
"values": [
"Ruth Ashworth",
"Imogen Hale",
"Ruth Ashworth",
"Dan Farrow"
]
},
{
"label": "Every piece differs",
"values": [
true,
true,
false,
true
]
}
]
},
{
"title": "Size and delivery",
"rows": [
{
"label": "Height",
"values": [
"24 cm",
"18–22 cm",
"11 cm",
"14 cm"
]
},
{
"label": "Sold as",
"values": [
"Single",
"Single",
"Pair",
"Pair"
]
},
{
"label": "Ships in",
"values": [
"2 working days",
"2 working days",
"2 working days",
"2 working days"
]
}
]
}
],
"labels": {
"caption": "Vases compared",
"differences": "Only show differences",
"yes": "Yes",
"no": "No",
"add": "Add to basket",
"added": "Added",
"wasPrice": "Was",
"reviews": "{count} reviews"
}
}