@johnrom/react-countup
Version:
A React component wrapper around CountUp.js
12 lines (11 loc) • 457 B
TypeScript
import React, { CSSProperties } from 'react';
import { CallbackProps, CommonProps, RenderCounterProps } from './types';
export interface CountUpProps extends CommonProps, CallbackProps {
className?: string;
redraw?: boolean;
children?: (props: RenderCounterProps) => React.ReactNode;
style?: CSSProperties;
preserveValue?: boolean;
}
declare const CountUp: (props: CountUpProps) => JSX.Element | null;
export default CountUp;