# KPI Card Row

> 3 KPI cards, requests, accuracy and latency, each number counts up and sits over a sparkline with the previous period dashed underneath. The 24H, 7D and 30D switch recounts every card at once, and each delta is worked out from the 2 periods, hover it to see the math. Hover, tap or arrow through a sparkline and it reads that point with its time. For latency lower is better, so a drop shows green. metrics and ranges are props. Light and dark via shadcn theme tokens, respects reduced motion. More dark, data-dense components at https://www.ssych.com/library?ref=21st.dev

- Author: [Savva Sicevs](https://21st.dev/@ssychui)
- Library: [ssych ui](https://21st.dev/@ssychui/library/ssicevs)
- License: mit
- Tags: Dashboard, Sparkline, Metric, KPI
- npm dependencies: framer-motion
- Live preview: https://21st.dev/@ssychui/components/kpi-card-row

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ssychui/kpi-card-row?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/dashboard.md
