Stats & Numbers
Scorecard Grid with Targets
Grid of metric cards that scores each one against its own target, with a written verdict — on track, at risk, or missed — instead of colour-only pass/fail. Handles metrics where lower is the win, like churn or response time, with a single flag per card.
$ velocityx add scorecard-grid-targets Built for astro.
Full docs for Scorecard Grid with Targets →
Needs a licence key —
subscribe here, then
velocityx loginonce.
MRR
At risk$48,200
Target $50,000
Churn
On track2%
Target 3%
NPS
Missed target61
Target 70
Response time
Missed targeth14
Target h10
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| metrics | ScorecardMetric[] | Yes | ||
| columns | 2 | 3 | 4 | No | 3 | |
| className | string | No | '' |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
components/velocity/scorecard-grid-targets/ScorecardGridTargets.astro Using the Scorecard Grid with Targets component
Install it with velocityx add scorecard-grid-targets.
The CLI writes the source straight into your project — no runtime dependency, no registry
lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.
Related components
More from Stats & Numbers.
Stat band whose numbers count up when the section scrolls into view, then settle. No runtime dependency — plain Astro plus a small inline observer. Honours prefers-reduced-motion by rendering final values immediately.
astroPuts two numbers on one shared scale and calls out the delta — the proof-point shape for 'we cut your load time' or 'conversion rate before vs. after' case studies. Ships a screen-reader summary alongside the bars, so the comparison reads correctly even without the visual.
astroOne headline figure sized to carry a section on its own, with a short annotation line underneath for context. Locale-safe number formatting (including compact '4.2M' notation) and a count-up that lands on the real value immediately for reduced-motion users.
astroThe compact way to show actual-vs-target on a scorecard row: a thin fill against a qualitative poor/satisfactory/good band, with a tick marking the target, so a whole KPI reads in the space a single number used to take. Values stay in text too, so it holds up for anyone who can't read the bar visually.
astro