1.0.2 • Published 5 years ago

react-sliding v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-sliding

NPM JavaScript Style Guide

Demo

Live

Install

npm install --save react-sliding

Properties

PropertyDescriptionTypeDefault
arrowSizeSet the size for the previous and next arrowsInteger48
defaultIndexChoose the index where the slideshow should startInteger0
disableIndexChoose whether to show or hide the index displayBooleanfalse
heightSet the height of the slideshowString'100%'
slidesThe images you want to be shown. This must be an array of stringsArray[]
timeoutSet the timeout in ms at which the images changeInteger5000
widthSet the width of the slideshowString'100%'

Usage

import React from "react";
import ReactSliding from "react-sliding";

const slides = ["images/bee.jpg", "images/bridge.jpg", "images/cornfield.jpg", "images/deer.jpg"];

const Example = () => (
  <div style={{ position: "relative" }}>
    <ReactSliding slides={slides} />
  </div>
);
export default Example;

License

MIT © barlow21

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago