Velocity X Components

Stats & Numbers

Big Number Hero Stat

One 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.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add big-number-stat

Built for astro.

Full docs for Big Number Hero Stat →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.1
Big Number Hero Stat

4.2M

Monthly active users

Up from 2.1M last year

Props

NameTypeRequiredDefaultDescription
valuenumberYes
prefixstringNo''
suffixstringNo''
compactbooleanNofalseUses Intl compact notation (4.2M) instead of the full number.
decimalsnumberNocompact ? 1 : 0Decimal places to keep, applies to both compact and full formatting.
labelstringYes
annotationstringNo
align'left' | 'center'No'left'
size'md' | 'lg'No'lg'

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/big-number-stat/BigNumberStat.astro

Using the Big Number Hero Stat component

Install it with velocityx add big-number-stat. 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.

More from Stats & Numbers.