React carousel component.
npm install wheely --save
import React from 'react';
import Carousel from 'wheely';
const CarouselTest = () => {
const settings = {
pageLength: 1,
infinite: true,
};
return (
<Carousel {...settings}>
<div>1</div>
<div>2</div>
<div>3</div>
</Carousel>
);
};
Prop | Default | Description |
---|---|---|
autoplay | false | Enable autoplay |
autoplayTimeout | 3000 | Autoplay timeout |
infinite | false | Infinite loop sliding |
startIndex | 0 | Slide to start |
slidesToScroll | 1 | Slides to scroll |
speed | 300 | Animation speed |
updateIndexCb | (index) => null | Callback fired after scrolling |
variableSize | false | Variable slide size |
vertical | false | Vertical |
Thank you for considering contributing! Please use GitHub issues and Pull Requests for Contributing.
The MIT License (MIT). Please see License File for more information.
- [ ] Write tests