0.2.1 • Published 8 years ago

reactive-carousel v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago
import Carousel, {CarouselElement} from 'reactive-carousel'


const YourComponent = () => {
    return (
        <Carousel width={600} height={300}
                  autoplay={true} interval={4000}>
            <CarouselElement imagePath="someUrl..."
                             caption="caption text"
                             onClickCb={()=>{}}
                             autoplay={true}
                             showAutoplayButton={true} />
        </Carousel>
    )
}

Just put some CarouselElements inside the Carousel. Optionally you can specify width, height on a Carousel tag. Specify imagePath, caption and a onClickCb for CarouselElement. That's it :)

Optionally you can turn on autoplay by setting autoplay atribute of Carousel to true and you can specify the interval of autoplaying in ms. Default value is 3000 To allow a user to pause/resume autoplay specify 'showAutoplayButton' attribute with a value 'true'

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago