For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
When to use
- A store decision step that lines up rival models on price, star rating and their features or test scores
- Buying guides built on editor picks or on models ranked by a scored review
- Shopper driven matchups where buyers pick, swap or remove the models being weighed
When not to use
- Subscription plans or tiers of your own service, billed monthly, yearly or per seat: use the Pricing blocks
- A versus pitch that sets your tool against manual work or a rival approach: use the Compare blocks
- Several metric series plotted against each other over a time range: use the Line Chart blocks
Agent notes
- Replace
PRODUCTSand theProductIdunion in components/data.tsx; eachhrefthere is a hash anchor to point at a real product page - Each
Comparisonroot sets its ownmax-w-6xlwidth and page padding, and page.tsx addsmin-h-svh; strip them inside your layout formatCurrencyhardcodes USD withmaximumFractionDigitsat 0; set your store currency and cents there
Third-party API docs
- Embla Carousel v8: API reference, docs, used by 1 of 6 blocks
- Base UI v1: API reference, docs, llms.txt, used by 1 of 6 blocks
https://web.dev.reui.io/blocks/ecommerce/comparison.mdsearch({ query: "comparison", type: "block", category: "comparison" })Shadcn Product Comparison Blocks: Side by Side Feature Tables
A comparison table fails on mobile and in the middle of a long spec list. These blocks solve both: the product header sticks while the rows scroll, a toggle hides the rows that match, and the narrow layout switches to a per-product stack without losing the comparison.
All Comparison Blocks
Open any block on its own page for a live preview, the components it is built from, and the install command.
- Spec Comparison Table Side-by-side product comparison table with grouped specs and sticky labels
- Two-Product Compare Two-Product Comparison with Auto Winner Indicators
- Buying Guide Picks Editor's pick comparison cards with ratings, feature checklist and add-to-cart
- Ranked Scorecards Ranked product scorecard carousel with per-dimension score bars
- Alternatives Switcher Product Comparison with Focused Hero Card and Swappable Alternatives
- Compare Builder Interactive Product Comparison Builder with Live Spec Panel
What the Comparison blocks cover
eCommerce screens, each a full block with fixture data:
- Side-by-side product comparison table with grouped specs and sticky labels
- Two-Product Comparison with Auto Winner Indicators
- Editor's pick comparison cards with ratings, feature checklist and add-to-cart
- Ranked product scorecard carousel with per-dimension score bars
- Product Comparison with Focused Hero Card and Swappable Alternatives
- Interactive Product Comparison Builder with Live Spec Panel
Built from
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
How many products can be compared?
How do I install a Comparison block?
Is a license needed?
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.