1.0.6 • Published 6 years ago

bacon-slider v1.0.6

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

bacon-slider

React image Lightbox with Swipe and Keyboard Events

Since i could not find a react component equivalent to Lightbox, Fancybox etc including Swipe and Keyboard Events, i decided to create one.

How to use

npm i -S bacon-slider

import as you would any other React Component from Node Modules and pass an Array of Image Urls in the props

<Gallery isOpen={galleryOpen}
         images={vehicleImageUrls}
         handleCloseGallery={this.handleCloseGallery}
/>

Props

All 3 props are seen in the code snippet above and all 3 are required.

Propsdefaultrequired
isOpen (boolean)-yes
images (array)-yes
handleCloseGallery (func)-yes

Your wrapping Component should probably manage the isOpen Prop and have a method to switch it to true or false as needed.

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago