forked from emre/www_projectmycelium_com
18 lines
300 B
TypeScript
18 lines
300 B
TypeScript
import CountUp from 'react-countup'
|
|
|
|
interface CountUpNumberProps {
|
|
end: number
|
|
className?: string
|
|
}
|
|
|
|
export function CountUpNumber({ end, className }: CountUpNumberProps) {
|
|
return (
|
|
<CountUp
|
|
end={end}
|
|
duration={2.5}
|
|
separator=","
|
|
className={className}
|
|
/>
|
|
)
|
|
}
|