# Marketing Stat: Metric Cards

Bordered cards each holding one metric, a label, and a trend note. Use it to report KPIs in a structured layout on a homepage or product page.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/stats/metric-cards
- 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/metric-cards.png

## Install

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

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-metric-cards.json"`.

## Depends on

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

## About this block

Metric Cards opens with a centered heading, a short descriptor line, and a
"Dashboard" badge. Directly below sits a three-column status summary row:
one tile each for the percentage of metrics that are on target, needing
attention, or critical, each tinted green, amber, or rose to match its
state. The main body is a responsive grid of bordered cards, one per KPI.
Each card shows a metric name with a small tooltip trigger, the current
value in a large bold figure, a signed percentage change with a directional
arrow, a comparison period label, and a footer strip that echoes the health
status in plain text.

The heading copy, badge label, and descriptor are straightforward to swap.
The metric list drives everything below: add, remove, or reorder entries to
change which KPIs appear and how the status summary recalculates. The trend
color logic is context-aware, so a downward move on churn reads green while
the same direction on conversion reads red.

## When to use

Reach for this block when you need to surface a full set of KPIs in one
view rather than spotlight a single headline number. It suits a product
landing page for a developer tools company, an internal status page, or a
"health at a glance" section on a documentation hub where readers expect
to scan many signals quickly. The status tinting and footer labels make
it a stronger choice than a plain card grid when some metrics may be off
target and you want that to be visible without explanation.

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

**Before**

- [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to set context before
  readers reach the numbers
- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to explain what
  drives the metrics shown below

**After**

- [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) to back the numbers with
  customer voices
- [CTA Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to turn a reader who is
  convinced by the data into a signup

## What you can display

The grid works for any set of KPIs that benefit from a health signal
alongside the value. A few directions to take it:

- **Product health metrics.** Track API uptime, error rate, and response
  time so engineering teams and prospects can read system status at a
  glance.
- **Go-to-market KPIs.** Populate the cards with pipeline value,
  trial-to-paid rate, and time-to-close to give a sales dashboard a
  polished public-facing face.
- **Developer adoption signals.** Show weekly active installs, docs
  page views, and SDK download counts to report open-source traction on
  a community or changelog page.

> Tip: keep the metric list to nine cards or fewer so the status summary
> percentages stay meaningful and the grid does not require scrolling on
> a typical laptop viewport.

## 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)
- [Comparison Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats/comparison-stats)
- [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)
- [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)
