NumberFlow

Accessible animated numbers with digit wheels, Intl formatting, and reduced-motion support.

Installation

Basic

1,284

Formatting

$12,480+8.4%

Timing and direction

42

API Reference

PropTypeDefaultDescription
valuenumber | bigintThe numeric value to render. Changes transition automatically.
formatIntl.NumberFormatOptionsFormatting options for the rendered number, such as currency or compact notation.
localesIntl.LocalesArgumentLocale or locale list passed to Intl.NumberFormat.
prefix / suffixstringStatic text placed before or after the formatted value.
trendnumber | (oldValue, value) => numberMath.sign(value - oldValue)Controls whether digit wheels travel up, down, or choose their shortest independent path.
transformTiming / spinTiming / opacityTimingEffectTimingWeb Animations timing objects for layout, digit spin, and added or removed characters.
animatedbooleantrueDisables current and future transitions when set to false.
respectMotionPreferencebooleantrueHonors the user's reduced-motion preference by default.

Credits

NumberFlow is powered by NumberFlow for React by Maxwell Barvian, released under the MIT License.