0.0.31 • Published 5 years ago

react-slidez v0.0.31

Weekly downloads
524
License
-
Repository
-
Last release
5 years ago

React Slidez

Demo

💪 Live demo 💪

Installation

npm install react-slidez --save

Properties

PropertyDescriptionTypeDefault
showIndexShow the index of the current slideBooleanfalse
showArrowsShow arrows to navigate through the slidesBooleantrue
autoplaySelect whether you want the slideshow to autoplay or notBooleantrue
enableKeyboardSelect whether you want to allow the user change the slides with the keyboardBooleantrue
useDotIndexSelect whether you want the index to be dots or numbersBooleanfalse
slideIntervalDictate the speed in ms at which the slides changeInteger2000
defaultIndexChoose the index that you wish to start atInteger0
slidesThe slides you pass into the component. This can be an array of images, or other components which are passed as children. See example below.ArrayNo default
effectChoose the animation effect of your slideshow. Options include fade, left, top, right, bottom, bounce-right, bounce-leftString'fade'
heightChoose the height of the slideshow. Example height={'50px'} or height={'50%'}String'100%'
widthChoose the width of the slideshow. Example width={'50px'} or width={'50%'}String'100%'

Usage

const Slideshow = require('react-slidez');

<Slideshow
  showIndex
  showArrows
  autoplay
  enableKeyboard
  useDotIndex
  slideInterval={2000}
  defaultIndex={1}
  slides={['1.jpg', '2.jpg']}
  effect={'fade'}
  height={'100%'}
  width={'100%'}
/>

You can also pass other components to the Slideshow component as children. All the same properties as above are available.

const Slideshow = require("react-slidez");

<Slideshow>
  <ComponentOne />
  <ComponentTwo />
  <Checkout />
</Slideshow>;

License

MIT License

Copyright (c) 2017 Paul Fitzgerald

0.0.31

5 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago