AnimatedNumber API
import { AnimatedNumber } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
animate | boolean | |
animateOnMount | boolean | |
animation | AnimatedNumberAnimation | |
countUp | boolean | |
currency | string | |
decimals | number | |
decimalSeparator | string | |
direction | AnimatedNumberDirection | |
duration | number | |
format | AnimatedNumberFormat | |
fractionDigits | number | |
groupSeparator | string | |
label | string | |
locale | string | |
max | number | |
maximumFractionDigits | number | |
min | number | |
minimumFractionDigits | number | |
notation | AnimatedNumberNotation | |
onComplete | (event: AnimatedNumberCompleteEvent) => void | |
prefix | string | |
size | 'sm' | 'md' | 'lg' | 'xl' | |
suffix | string | |
theme | 'default' | 'dark' | 'brand' | |
tone | 'default' | 'brand' | 'success' | 'warning' | 'danger' | |
value | number | |
variant | AnimatedNumberVariant |
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