Docs
⚙️ ⏐ Utils
Count

Count

The Count component in REAVIZ allows you to animate counting from one number to another. This feature can be used to display numerical data dynamically, adding a visual flair to your data presentations.

Where to use:

  • Display Dynamic Numbers: Ideal for displaying changing numerical values.
  • Highlight Key Metrics: Useful for highlighting key metrics and statistics in a visually engaging way.
  • Animate Data: Great for adding animation and interactivity to your data displays.

Quick Start

To use the Count component, use import the Count and give it a number to. Optionally you can give the from number to start from.

Examples

API

Count (opens in a new tab)

PropDescriptionDefault
className
string
to *Number to animate to
number
fromNumber to animate from. Defaults 0.
number
0
durationDuration of the animation in seconds. Defaults 1.
number
1
delayDelay of the animation. Defaults 0.
number
0
formatLocalize the number. Defaults true.
boolean
decimalPlacesNumber of decimal places. Defaults 0.
number
0
prefixPrefix the number with a string or number.
string | number
suffixSuffix the number with a string or number.
string | number