Usage
RollingNumber animates value changes, each digit rolls to its new position independently:
Prefix and suffix
Set prefix and suffix props to add static text before or after the animated number.
Use thousandSeparator to separate thousands and decimalScale with fixedDecimalScale
to control decimal formatting:
Animation duration
Set animationDuration (in milliseconds) and timingFunction props to change the animation:
200ms
600ms (default)
1200ms
Text selection and copying
Selecting and copying RollingNumber always produces the value as it is displayed,
for example $ 1,234.56 USD.
Accessibility
Set withLiveRegion when screen readers should announce changes to the number: