forked from emre/www_projectmycelium_com
Initial commit
This commit is contained in:
17
src/components/CountUpNumber.tsx
Normal file
17
src/components/CountUpNumber.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user