Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-slidez
Advanced tools
✨ Customisable React Slideshow component.✨
💪 Live demo 💪
npm install react-slidez --save
Property | Description | Type | Default |
---|---|---|---|
showIndex | Show the index of the current slide | Boolean | false |
showArrows | Show arrows to navigate through the slides | Boolean | true |
autoplay | Select whether you want the slideshow to autoplay or not | Boolean | true |
enableKeyboard | Select whether you want to allow the user change the slides with the keyboard | Boolean | true |
slideInterval | Dictate the speed in ms at which the slides change | Integer | 2000 |
defaultIndex | Choose the index that you wish to start at | Integer | 0 |
slides | The slides you pass into the component. This can be an array of images, or other components which are passed as children. See example below. | Array | No default |
effect | Choose the animation effect of your slideshow. Options include fade , left , top , right , bottom , bounce | String | 'fade' |
height | Choose the height of the slideshow. Example height={'50px'} or height={'50%'} | String | '100%' |
width | Choose the width of the slideshow. Example width={'50px'} or width={'50%'} | String | '100%' |
var Slideshow = require('react-slidez');
<Slideshow
showIndex
showArrows
autoplay
enableKeyboard
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.
var Slideshow = require('react-slidez');
<Slideshow>
<ComponentOne />
<ComponentTwo />
<Checkout />
</Slideshow>
Copyright (c) 2017 Paul Fitzgerald.
FAQs
React Slideshow Component
The npm package react-slidez receives a total of 98 weekly downloads. As such, react-slidez popularity was classified as not popular.
We found that react-slidez demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.