0.0.7 • Published 6 years ago

@alexcasche/react-carousel v0.0.7

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

react-js-carousel

React Carousel Component.

Getting Started

Installation

npm

npm install @alexcasche/react-carousel

yarn

yarn install @alexcasche/react-carousel

Props

NameTypeDefaultDescription
orientationstringhorizontalSet carousel direction (horizontal or vertical).
effectstringslideSet carousel effect (slide or fade).
speednumber350Set carousel transition speed (unit milliseconds).
wrapbooleantrueSet carousel wrap.
showControlsbooleantrueSet carousel control visiblility.
showIndicatorsbooleantrueSet carousel indicators visiblility.

Example

import React, { Component } from 'react';
import Carousel from 'react-carousel';
import 'react-carousel/style.css';

class SimpleExmample extends Component {
  render() {
    var options = {
      speed: 400,
      wrap: false,
      showIndicators: false
    };
    return (
      <Carousel {...options} >
        <div>First Slide</div>
        <div>Second Slide</div>
      </Carousel>
    )
  }
}
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago

1.0.0

6 years ago