Skip to content

Count Up

Free

Counts a number up from a start value when it scrolls into view, so a stat on a page gets noticed. The number uses the format of the reader's locale.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass the end value.

signups-stat.tsx

CountUp

<span>
PropTypeDefaultDescription
fromnumber | bigint0The number it shows before the count. Default: 0.
toRequirednumber | bigint—The number it counts to. A smaller to counts down. A new to counts on from the shown value.
localestring—The BCP 47 locale of the digits and marks ("de-DE"). Default: the DisplayLocaleProvider locale, else "en-US" (useDisplayLocale). Never the browser language, so a server render and the first browser render write the same number.
formatNumberFormatOptions—The options of Intl.NumberFormat (style, currency, notation, the fraction digits, signDisplay, and the others). The count shows every number in the format of to: its symbols and fraction digits, so 0 → "$2.4M" counts "$0.0M", "$0.1M", … "$2.4M".
durationnumberCOUNT_UP_DURATIONThe length of the count in ms. Default: 1600.
easeEasing[] | EasingEASE_PANELThe curve of the count: a Motion easing name ("linear", "easeOut", "circOut", "backOut") or a cubic-bezier array. Default: ease-panel (0.2, 0.4, 0.2, 1), which starts at once and slows evenly into the last digit.
delaynumber0The wait in ms between the trigger and the count. Default: 0.
trigger"in-view""manual""mount""in-view"What starts the count. in-view (the default): half of the number is in the viewport. mount: at once. manual: when start is true.
startbooleanfalseWith trigger="manual": true starts the count, false shows from again.
oncebooleantrueWith trigger="in-view": true (the default) counts the first time only. False shows from again when the number leaves the view, and counts again when it comes back.
onComplete—Runs when the count reaches to.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Pass to, and from when it does not start at 0.
  • Pass format for a currency, a percent, or a compact count.
  • Use trigger="manual" with start to start it from code.

The final number is in the text, so a screen reader reads the value and not the count.

Digits keep their width, so nothing around it moves.

Count
panel · 1600ms by default · `duration` and `ease` change it
  1. AddedCount Up.
Open the release