Skip to main content
Copy for LLM

Stat with Sparkline

A KPI card that combines four things a stat card often needs: a large value, a change indicator, an inline sparkline and a citation. Good for analytics dashboards where every card needs context, not just a number.

Recipe

Stat with sparkline + citation
Total Events
2.4M
increased +12.3%
Source: Q1 2026 events table (snapshot 2026-04-25)

Variations

  • Server-driven trend line: $points is an array of the last 7 or 30 values, built in your Livewire component.
  • Progress instead of trend: Swap <x-slot:sparkline> for <x-slot:progress> and pass a <x-wirekit::progress> component when the metric represents quota usage rather than a time series.
  • Trend color: The sparkline colors itself by the direction of its series, rising or falling. Where falling is good, as for a churn rate, give it trend="up", the same word the stat's trend takes.

Components Used

  • Stat — value, change, trend, citation, named sparkline slot
  • Sparkline — the trend line, colored by its direction

See Also