Advanced level React carousel plugin
To install this package, run:
npm i @get-set/gs-carousel
import GSCarousel from '@get-set/gs-carousel';
export default function Carousel() {
return (
<GSCarousel
slidesToShow={2}
slidesToScroll={1}
gap='2rem'
focusOnSelect
autoplay
>
<div> //GSCarousel 1-st item
<img src="image1.jpg" />
</div>
<p> //GSCarousel 2-nd item
<span>text1</span>
<a>link</a>
</p>
<img src="image3.jpg" /> //GSCarousel 3-rd item
<section> //GSCarousel 4-th item
<img src="image4.jpg" />
</section>
</GSCarousel>
)
}
You can see all properties using jshint