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
durationDuration of the animation in seconds. Defaults 1.
number
delayDelay of the animation. Defaults 0.
number
formatLocalize the number. Defaults true.
boolean
decimalPlacesNumber of decimal places. Defaults 0.
number
prefixPrefix the number with a string or number.
string | number
suffixSuffix the number with a string or number.
string | number