swiper usage with react typescript #6792
-
First, I installed
Then, followed the example here: https://swiperjs.com/element#usage-with-react It did not work, because I got the following error:
Next I added
The page renders the following. I can scroll by dragging the picture, but is no go left/right icon to indicate that I can scroll it.. What should I do to make it work? 😄 |
Beta Was this translation helpful? Give feedback.
Answered by
zewas-digital
Jul 12, 2023
Replies: 1 comment
-
Maybe try adding <swiper-container
ref={swiperElRef}
slides-per-view="1"
navigation="true"
>
{props.urls && props.urls.map((url) => {
return <swiper-slide><img src={url} /></swiper-slide>
})}
</swiper-container> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
greenpau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe try adding
navigation="true"
to your swiper-container