1.0.4 • Published 3 years ago

@jbpartin/react-carousel v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-carousel

A simple react component that allows you to easily make a carousel slider.

NPM JavaScript Style Guide

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

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago