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
Total Events
2.4M
increased
+12.3%
Source: Q1 2026 events table (snapshot 2026-04-25)Variations
- Server-driven trend line:
$pointsis 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::component when the metric represents quota usage rather than a time series.progress> - 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'strendtakes.
Components Used
- Stat —
value,change,trend,citation, namedsparklineslot - Sparkline — the trend line, colored by its direction
See Also
- Live KPI Strip — same compact density via
<x-wirekit::instead ofticker> stat - Stat component docs — full prop and slot reference