UNPKG

@arolariu/components

Version:

A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)! 😍

16 lines (15 loc) 617 B
import * as React from "react"; import { type SpringOptions, type UseInViewOptions } from "motion/react"; interface CountingNumberProps extends React.HTMLAttributes<HTMLSpanElement> { number: number; fromNumber?: number; padStart?: boolean; inView?: boolean; inViewMargin?: UseInViewOptions["margin"]; inViewOnce?: boolean; decimalSeparator?: string; transition?: SpringOptions; decimalPlaces?: number; } declare const CountingNumber: React.ForwardRefExoticComponent<CountingNumberProps & React.RefAttributes<HTMLSpanElement>>; export { CountingNumber, type CountingNumberProps };