Skip to content

wutility/react-caroussel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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