Statistic
Display numeric values with labels, prefixes, and formatting.
When to Use
- For dashboard KPIs and metrics
- To highlight important numbers
- For countdown timers
Import
Examples
Basic
With Prefix/Suffix
Countdown
API
StatisticProps
title—ReactNode— Statistic labelvalue—string | number— Numeric valueprecision—number— Decimal precisionprefix—ReactNode— Element before valuesuffix—ReactNode— Element after valuevalueStyle—CSSProperties— Value text stylesformatter—(value) => ReactNode— Custom format functiongroupSeparator—string— Thousands separator (default:",")decimalSeparator—string— Decimal separator (default:".")loading—boolean— Show skeleton
Statistic.Countdown Props
value—number— Target timestamp (ms)format—string— Display format (default:"HH:mm:ss")onFinish—() => void— Callback when countdown reaches zeroonChange—(value: number) => void— Callback on each tick