# Ecommerce Hero: Comparison Hero

A store hero that argues price with a scrolling cost of ownership table comparing the flagship against a cheap rival, ending on cost per year.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/comparison-hero
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro), Standard tier
- Group: [Heroes](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/comparison-hero.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-pro-store-heroes-comparison-hero
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/ecommerce-pro/store-heroes/comparison-hero`

## About this block

Comparison Hero argues price with arithmetic, a headline
that reframes the sticker cost and a cost of ownership table
that runs the flagship against the cheap bag it replaces,
line by line, down to cost per year of use. Material,
guarantee, repairs, and expected life build to the two
figures that close the case.

The table scrolls on narrow screens and cites its own
sources, a repair log and an owner survey, with the
methodology offered in full. The claim is a table, not a
tagline.

## When to use

Reach for this block when the objection is price and the
honest answer is longevity, not a discount. It sets up the
detail a shopper checks next, the full
[comparison table](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/comparison-tables).

A natural flow around it on an Ecommerce Pro page:

**Before**

- Nothing, heroes open the page

**After**

- [Comparison table](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/comparison-tables)
- [Spec sheet](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/spec-sections) for the
  flagship

## What you can display

One strong use is the cost per year case. Other comparisons:

- **Us versus the category.** The honest table against a
  generic rival.
- **Buy once versus replace.** The repeat purchase math laid
  out.
- **Tier versus tier.** The good, better, best rows for one
  range.

> Tip: leading the table with cost per year lets a reader
> quote the one number that wins the argument before they
> read a single row.

## More in Ecommerce Heroes

- [Archive Sale Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/archive-sale-hero)
- [Bestseller Spotlight Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/bestseller-spotlight-hero)
- [Brand Manifesto Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/brand-manifesto-hero)
- [Centered With Category Links](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/centered-with-category-links)
- [Editorial Split Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/editorial-split-hero)
- [Founders Welcome Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/founders-welcome-hero)
- [Gift Guide Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/gift-guide-hero)
- [Gift Season Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/gift-season-hero)
- [Hero With Bestsellers Row](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/hero-with-bestsellers-row)
- [Hero With Reviews Strip](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/hero-with-reviews-strip)
- [Made Here Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/made-here-hero)
- [Mosaic Collage Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/mosaic-collage-hero)
- [New Arrivals Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/new-arrivals-hero)
- [Preorder Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/preorder-hero)
- [Press Quote Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/press-quote-hero)
- [Product Finder Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/product-finder-hero)
- [Restock Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/restock-hero)
- [Seasonal Prep Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/seasonal-prep-hero)
- [Seasonal Sale Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/seasonal-sale-hero)
- [Split With Product](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/split-with-product)
- [Starter Kit Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/starter-kit-hero)
- [Store Numbers Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/store-numbers-hero)
- [Text Only Drop Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/text-only-drop-hero)
- [Trade Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/trade-hero)
- [Video Lookbook Hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes/video-lookbook-hero)
