Manta Developers
GitHub
Menu

@manta-eu/react/count-up

Reference for @manta-eu/react/count-up as it is on main.

Type Aliases

CountUpProps

CountUpProps = object

Properties

animateOnView?

optional animateOnView?: boolean

className?

optional className?: string

decimals?

optional decimals?: number

duration?

optional duration?: number

Roll duration in seconds; the smooth spring by default.

locale?

optional locale?: Intl.LocalesArgument

Grouping locale; the runtime’s by default. Digits stay Latin.

prefix?

optional prefix?: string

suffix?

optional suffix?: string

value

value: number

Functions

CountUp()

CountUp(props): Element

Parameters

props

CountUpProps

Returns

Element


countUpFormatter()

countUpFormatter(locale, decimals): NumberFormat

The figure’s formatter: the locale’s grouping, Latin digits.

Parameters

locale

LocalesArgument

decimals

number

Returns

NumberFormat