Simple react gallery component
npm install @tluper94/react-galleryReact gallery is a simple gallery/carousel component for react
Check out the demo - Codesandbox demo
``node`
$ npm i @tluper94/react-gallery
`jsx`
import Gallery from '@tluper94/react-gallery';
Gallery items are children of the gallery component
Example:
`jsx`
height='500px'
>
Example
Width and height are required and accepts type 'string'
Example:
`jsx`
heith='100px'
>
Controls prop is optional and accepts a type object {color: 'string', size: 'string', weight: 'string}
-color - can be any css color
-size - can be any css size
-weight - 'thin', 'light', 'regular', 'bold', 'fill', 'duotone'
Example:
`jsx`
height='20vh'
controls={color: '#fff', size: '2vw', weight: 'fill'}
>
Dots prop is optional and accepts a type object {color: 'string', size: 'string', inside: boolean}
-color - can be any css color
-size - can be any css size
-inside - true -- if true dots are on the inside of container else on the outside
Example:
``jsx
height='100%'
dots={color: 'black', size: '20px' inside: true}
>