Skip to Content

Counter

An effect component that displays numerical values with animated transitions during value changes. 

0

With Decimals

Use the decimals prop to set a specified number of decimal places.

0.0

With Custom formatter

Use the formatter prop to set a function to format the counter value in a custom way.

0

API

Counter

ElementSelector
Counter.ex-counter
PropTypeDefault
asElementTypespan
asChildbooleanfalse
decimalsnumber0
delaynumber0
durationnumber1000
initialValuenumber0
valuenumber
formatterfunction
Last updated on