@get-set/gs-carousel
v1.0.97
Published
Get-Set Carousel
Downloads
43
Maintainers
Readme
Get-Set Carousel
Description
Advanced level React carousel plugin
Installation
To install this package, run:
npm i @get-set/gs-carousel
Usage
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>
)
}
Props
You can see all properties using jshint