UNPKG
react-responsive-framer-motion-carousel
Version:
latest (1.5.1)
1.5.1
1.5.0
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.19
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.1-9.1
1.2.1-8.11
1.2.1-8.10
1.2.1-8.9
1.2.1-8.8
1.2.1-8.7
1.2.1-8.6
1.2.1-7.6
1.2.1-7.5
1.2.1-7.4
1.2.1-7.3
1.2.1-7.2
1.2.1-7.1
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
React carousel componet
react-responsive-framer-motion-carousel
/
components
/
Counter.jsx
10 lines
(7 loc)
•
234 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
function
Counter
(
{counter, pageIndex, pageCount}
) {
return
(
<
span
className
=
"carousel-counter"
>
{`${counter[1] ? counter[1] : ""} ${pageIndex + 1} / ${pageCount}`}
</
span
>
) }
export
default
Counter