New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-slidez

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slidez

React Slideshow Component

  • 0.0.31
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
98
decreased by-53.99%
Maintainers
1
Weekly downloads
 
Created
Source

React Slidez

Customisable React Slideshow component.

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

Keywords

FAQs

Package last updated on 08 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc