akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.61k stars 2.09k forks source link

feat: Add dynamic slide adjustment to multi-item carousel #2318

Closed sandeepmallina closed 5 months ago

sandeepmallina commented 6 months ago

Enhancement Overview: I have added two buttons, “Add Slides” and “Remove Slides”, to the multi-item carousel container. These buttons allow users to dynamically adjust the number of slides shown in the carousel.

Justification: The motivation behind this enhancement is to provide users with a more interactive experience and a clearer understanding of how the carousel behaves with different numbers of slides. By manipulating the number of slides, users can see how the carousel adjusts, providing a more tangible understanding of the slidesToShow and slidesToScroll properties.

akiran commented 5 months ago

MultipleItems is a basic example to illustrate that multiple slides can be shown with carousel. Don't want to complicate it with add and remove buttons.

We have dynamic slides example to illustrate your usecase https://react-slick.neostack.com/docs/example/dynamic-slides