CountUp

Animates a number from a start value to its final value when scrolled into view. Screen readers always get the real value; reduced motion renders it immediately.

Installation

npx dafink-ui add count-up

Demo

12,480Daily downloads
99.98%Uptime
$1,200,000ARR

Props

NameTypeDefaultDescription
valuenumber-Required. Final value to count up to.
startnumber0Value the animation starts from.
durationnumber1000Animation duration in milliseconds, eased with the --ease-standard token curve.
decimalsnumber0Number of decimal places rendered.
prefixstring""String prepended to the number (e.g. "$").
suffixstring""String appended to the number (e.g. "%").
separatorstring""Thousands separator (e.g. ",").
classNamestring""Additional Tailwind classes merged onto the root span.