I imported react-multi-carousel module and set the simple carousel.
But it's not working. There are no <li>
tags.
Rendered HTML is below.
<ul class="react-multi-carousel-track " style="transition:none;overflow:unset;transform:translate3d(0px,0,0)"></ul>
<div className={classes.profileCarousel}>
<Carousel
additionalTransfrom={0}
arrows={false}
autoPlaySpeed={0}
centerMode={false}
className={classes.carousel}
customButtonGroup={<ButtonGroup/>}
customDot = {<CustomDots/>}
dotListClass={classes.customDotList}
draggable
focusOnSelect={false}
infinite={true}
keyBoardControl
minimumTouchDrag={80}
partialVisible
renderButtonGroupOutside
renderDotsOutside
responsive={responsive}
showDots
sliderClass=""
slidesToSlide={1}
swipeable
>
{profiles.map(element => {
return <ProfileCard props={element} key="as"/>
})}
</Carousel>
</div>
stack: next.js
typescript
material-ui
What's wrong with it?
I already had this problem with this lib.
Basically it is because the brake points have not been set correctly.
This is a standard object I created, try using it and see if it works for you.