UNPKG

react-animated-numbers

Version:

Library showing animation of number changes in react.js

13 lines (12 loc) 471 B
import React from "react"; import { type Transition } from "motion/react"; interface Props { className?: string; animateToNumber: number; fontStyle?: React.CSSProperties; transitions?: (index: number) => Transition; useThousandsSeparator?: boolean; locale?: string; } declare const AnimatedNumber: ({ className, animateToNumber, fontStyle, transitions, useThousandsSeparator, locale, }: Props) => React.JSX.Element; export default AnimatedNumber;