All effects
TextClient component

Rolling Number

Independent digit columns roll into place whenever a formatted number changes.

Change the value or billing period

Effect style

Monthly usage

Usage

tsx
import { RollingNumber } from "@/components/effects/rolling-number"

<RollingNumber value={1248.5} options={{ style: "currency", currency: "USD" }} />

API reference

Rolling Number props
PropType / defaultDescription
valuenumberThe current numeric value. Changing it animates individual digits.
localestring = "en-US"Explicit formatting locale to keep server and client output consistent.
optionsIntl.NumberFormatOptionsCurrency, percent, fraction digits and other standard number formatting options.

Use className to adjust layout and styling. New effects respect system reduced-motion preferences and the preview motion setting.