@antonkolesnik/counter
Version:
React number increase/decrease animation
15 lines (14 loc) • 467 B
TypeScript
import React from 'react';
type CounterT = {
duration: number;
start?: string;
end?: string;
className?: string;
withAnimation?: boolean;
fontSize?: number;
decimals?: number;
onUpdate?: (nextValue: string) => void;
isStart?: boolean | null;
};
export default function Counter({ duration, start, end, className, withAnimation, fontSize, decimals: decimalsProp, onUpdate, isStart, }: CounterT): React.JSX.Element | null;
export {};