Stats editions
Four stats sections for a marketing page: figures with the line they ended on, one large figure with its before and after, figures with a month, quarter and year switch, and an editorial row whose every figure links to its source.
Twelve months on Halden
Faster every month. Here is the line.
Across all customers, November 2025 to October 2026.
- Bank lines matched automatically
- 96%
- +25 points on last year
- Median close
- 2.4 days
- 3.7 days faster
- Entries posted
- 18.6M
- +102% on last year
When to use
- A product or investor page that makes its case in numbers.
- A result that is clearer as a change than as a total.
- Figures readers will want to check; give them the source.
When not to use
- Numbers without a period or a source.
- Counting animation on figures that did not change; the trends and before-and-after count once, the period switch only when the period changes.
- Product dashboards; use `stat-card` there.
Installation
pnpm dlx shadcn@latest add @caliper/stats-editions
Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
StatsTrends
5 props
StatsBeforeAfter
9 props
StatsPeriods
7 props
StatsFootnoted
5 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-hidden, aria-live and aria-label in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/stats-editions.mdThe index of every part is at /llms.txt.