Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Number Ticker

A number whose digits roll to each new value. Intl formatting for currency, percent and compact numbers.

OriginalsDumb extras
Monthly revenue$48,210
Deploys this week1,284
$ pnpm dlx shadcn@latest add @dumb/number-ticker

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { NumberTicker } from "@/components/ui/number-ticker"
<NumberTicker value={48210} format={{ style: "currency", currency: "USD" }} />

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

NumberTicker

PropTypeDefault
valueextranumber

The number to show. Changes roll digit by digit.

-
formatextraIntl.NumberFormatOptions

Currency, percent, compact notation, decimals.

-
localesextraIntl.LocalesArgument

Locale for formatting.

"en-US"
animateOnMountextraboolean

Roll up from zero on first render.

true