Stat Cards

A fundamental building block of every dashboard - ready-made KPI cards for presenting key performance indicators.

Stat Cards

A fundamental building block of every dashboard, used to present key performance indicators (KPIs).

Revenue
$124,500
12.5% vs previous month
New Customers
42
3.2% vs previous month
<div class="stat-card">
  <div class="stat-title">Revenue</div>
  <div class="stat-value">$124,500</div>
  <div class="stat-trend is-positive"><svg class="icon" aria-hidden="true"><use href="img/icons-sprite.svg#ph-trend-up"></use></svg> 12.5%</div>
</div>

Mini Chart in a Card (Chart Micro)

The .chart-micro class added to .r-chart-wrapper forces a fixed, safe size (80×40px) - ideal for embedding next to a number in a stat card, with no risk of Flexbox stretching the layout.

Site Traffic
8,204
<div class="stat-card d-flex align-items-center justify-content-between">
  <div>
    <div class="stat-title">Site Traffic</div>
    <div class="stat-value">8,204</div>
  </div>
  <div class="r-chart-wrapper chart-micro">
    <div class="chart-sparkline">
      <div class="sparkline-bar" style="--val: 20%;"></div>
      <div class="sparkline-bar" style="--val: 50%;"></div>
    </div>
  </div>
</div>