This commit is contained in:
2025-09-17 14:58:10 +02:00
parent bde7d37305
commit 4b5c30c11e
2 changed files with 23 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
'use client'
import CountUp from 'react-countup'
import { H2 } from './Texts'
interface CountUpNumberProps {
end: number
className?: string
color?: 'light' | 'primary' | 'secondary' | 'custom'
}
export function CountUpNumber({ end, className, color }: CountUpNumberProps) {
return (
<H2 color={color} className={className}>
<CountUp end={end} duration={2.75} separator="," />
</H2>
)
}