React LightBox Pack
A Lightweight NPM LightBox Package built with simplicity in mind. Since it's built from Scratch it doesn't need any additional dependencies to work.
⭐ Features
- Built from scratch ??⚡
- Crafted for React ⚛
- No additional dependency used ❤
- Customizable ?
? Installation
npm install react-lightbox-pack
or
npm i react-lightbox-pack
? Usage
Example code below shows how the Image LightBox pack can be used with sample json data.
App.js
Sample data.json
Props
props | type |
---|---|
state | accepts state with boolean |
event | accepts an event with state, selected index argument |
data | accepts an array of object with photos |
sIndex | accepts a state with number default as 0 |
imageWidth | accepts size as string or number |
imageHeight | accepts size as string or number |
thumbnailHeight | accepts size as string or number |
thumbnailWidth | accepts size as string or number |