Are you an AI agent?

NumberFlow

import { NumberFlow } from '@wick-charts/react';
 
<NumberFlow value={price} />

Animated number ticker. Each changed digit spins in the direction of the change, and a digit that comes or goes slides while the width follows. By default leading zeros collapse into a count (0.0₅8123) and large values take a suffix (1.235B), so very small and very large values stay short. Used internally by <YLabel> — also exported for custom UI.

01234567890123456789.012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
3.039e-8

Props

valuenumber

Numeric value to display. Each digit that changes between renders animates with a vertical spin.

format?default to `formatSignificant`: leading zeros collapse into a countNumberFlowFormat

Value-to-string formatter. Defaults to formatSignificant: leading zeros collapse into a count (0.0₅8123), large values take a suffix (1.235B). Pass formatCompact / formatPriceAdaptive or your own function to customize.

Intl.NumberFormatOptions is also accepted (legacy) — it's routed through the built-in Intl.NumberFormat for back-compat with callers from before this prop was a function.

locale?default to `'en-US'`string

BCP 47 locale tag. Gives the decimal separator of the formatted text; a locale other than 'en-US' without format formats with Intl.NumberFormat. Defaults to 'en-US'.

spinDuration?default to `350`number

Per-digit spin animation duration in milliseconds. A value that arrives sooner than this after the previous one snaps instead. Defaults to 350.

shrinkDelay?default to `0`number

How long a character that left keeps its width before the number shrinks, in milliseconds. A value that moves back and forth across 99.99 / 100.01 then holds its width. Defaults to 0.

className?string

Extra class on the root <span>.

style?CSSProperties

Inline style on the root <span>.