react-caroussel
v1.0.6
Published
React Carousel.
Downloads
1,023
Readme
React Caroussel
- Fast And Simple to use.
- Lightweight.
- Zero dependencies.
Demo
$ npm i react-caroussel
// or
$ yarn add react-caroussel
Usage
import ReactCaroussel from 'react-caroussel';
import "react-caroussel/dist/index.css";
Usage
<ReactCaroussel
slidesToShow={3}
slidesToScroll={3}
infinite={true}
autoplay={false}
speed={2} // 2s: speed of autoplay
display={{
arrows: true,
dots: true
}}>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
</ReactCaroussel>
Notes
- All pull requests are welcome, feel free.
License
MIT