# Marketing Stat: Comparison Stats

Paired figures with labels that weigh your offering against a baseline. Great for sales pages that need to make the gain feel concrete and credible.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-stats
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-stats.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-stats-comparison-stats
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-stats-comparison-stats.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/marketing/stats/comparison-stats`

## About this block

Comparison Stats is a two-column layout with a sticky sidebar on the left
and a two-by-two card grid on the right. The sidebar holds a period badge,
a heading, a short description, and a footnote line showing when the data
was last refreshed. Each card in the grid displays a metric title, a
pill-shaped percentage badge with a chevron arrow, the current figure as a
large bold number, a trending icon paired with the previous period value,
and a timeframe label below.

The sidebar copy, badge text, and footnote are all independent of the cards,
so you can update the period label or description without touching the
metrics. The cards themselves are driven by a data array, so you can add,
remove, or reorder metrics freely. The color logic on each badge is aware of
direction context: a falling refund rate is shown in green, not red, so you
can apply the same pattern to any metric where a decrease is a positive
outcome.

## When to use

Reach for this block on a portfolio or case study page where a creative
agency wants to show client results from one engagement period against the
last. It works well when you have four or fewer headline figures that carry
the most weight, and you want each number to include the movement story
alongside the value. Compared to a plain stat strip, this layout gives each
metric room to breathe and shows the delta without requiring a separate
chart.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to introduce the
  campaign or client story before the numbers appear
- [Comparison Metrics](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-metrics) if you
  want a simpler side-by-side view without the card grid

**After**

- [Customer Testimonial](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/customer-testimonial) to
  pair a client quote directly with the results just presented
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to invite visitors to
  start their own engagement after seeing the proof

## What you can display

Any set of four key results where showing movement from a prior period adds
meaning to the current figure. A few fits for a creative studio context:

- **Campaign deliverables.** Swap in metrics like impressions, click rate,
  or conversion lift to report the outcome of a finished campaign.
- **Retainer health.** Show revenue, active projects, average turnaround,
  and cancellation rate to give clients a quarterly view of the relationship.
- **Production throughput.** Track assets delivered, revision rounds,
  approval time, and rework rate to surface efficiency gains over a sprint.

> Tip: keep all four timeframe labels consistent so readers can scan the
> grid without stopping to reconcile different comparison windows.

## More in Marketing Stats

- [Achievement Bars](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/achievement-bars)
- [Card Group](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/card-group)
- [Circular Progress](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/circular-progress)
- [Comparison Metrics](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-metrics)
- [Customer Testimonial](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/customer-testimonial)
- [Funnel Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/funnel-stats)
- [Gradient Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/gradient-grid)
- [Growth Timeline](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/growth-timeline)
- [Horizontal With Dividers](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/horizontal-with-dividers)
- [Impact Numbers](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/impact-numbers)
- [Interactive Hover](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/interactive-hover)
- [Metric Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/metric-cards)
- [One Main With Three Follow Ups](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/one-main-with-three-follow-ups)
- [Progress Bars](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/progress-bars)
- [Simple 3 Cols](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/simple-3-cols)
- [Sparkline Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/sparkline-stats)
- [Stats With Icons](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/stats-with-icons)
- [Timeline Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/timeline-stats)
- [Trust Indicators](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/trust-indicators)
