Skip to main content
Version: Next

AnimatedNumber API

import { AnimatedNumber } from '@editora/ui-react';

Props​

PropTypeDescription
animateboolean
animateOnMountboolean
animationAnimatedNumberAnimation
countUpboolean
currencystring
decimalsnumber
decimalSeparatorstring
directionAnimatedNumberDirection
durationnumber
formatAnimatedNumberFormat
fractionDigitsnumber
groupSeparatorstring
labelstring
localestring
maxnumber
maximumFractionDigitsnumber
minnumber
minimumFractionDigitsnumber
notationAnimatedNumberNotation
onComplete(event: AnimatedNumberCompleteEvent) => void
prefixstring
size'sm' | 'md' | 'lg' | 'xl'
suffixstring
theme'default' | 'dark' | 'brand'
tone'default' | 'brand' | 'success' | 'warning' | 'danger'
valuenumber
variantAnimatedNumberVariant

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-odometer>​

AnimatedNumber renders the ui-odometer custom element from @editora/ui-core, which can also be used without React.

Attributes: animate, animate-on-mount, animation, auto-format, count-up, currency, decimal-separator, decimals, direction, duration, format, group-separator, label, locale, max, maximum-fraction-digits, min, minimum-fraction-digits, notation, prefix, separator, size, suffix, theme, tone, value, variant

Events: complete