1.0.4 • Published 3 years ago
@jbpartin/react-carousel v1.0.4
react-carousel
A simple react component that allows you to easily make a carousel slider.
Install
npm install @jbpartin/react-carousel
Usage
import React, { Component } from 'react'
import Carousel from '@jbpartin/react-carousel'
import ' @jbpartin/react-carousel/dist/index.css'
class Example extends Component {
render() {
return (
<Carousel
responsive={{
large: {
toShow: 5,
toSlide: 5
},
desktop: {
toShow: 4,
toSlide: 4
},
ipad: {
toShow: 3,
toSlide: 3
},
mobile: {
toShow: 2,
toSlide: 2
}
}}
>
<div></div>
<div></div>
<div></div>
<div></div>
</Carousel>
)
}
}
License
MIT © JBPartin