Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.18 KB

README.md

File metadata and controls

58 lines (47 loc) · 1.18 KB

React Caroussel

  • Fast And Simple to use.
  • Lightweight.
  • Zero dependencies.
react carousel react carousel react carousel react carossel

react carousel

$ 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