1.0.28 • Published 3 years ago

@tluper94/react-gallery v1.0.28

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

@tluper94/React-gallery v1.0.27

React gallery is a simple gallery/carousel component for react

Check out the demo - Codesandbox demo

Installation

Using npm

$ npm i @tluper94/react-gallery

Usage

import Gallery from '@tluper94/react-gallery';

Gallery Items

Gallery items are children of the gallery component

Example:

<Gallery
    width='500px'
    height='500px'
>
    <img/>
    <video/>
    <div>Example</div>
</Gallery>

Width & Height

Width and height are required and accepts type 'string'

Example:

<Gallery
    width='100px'
    heith='100px'
>
</Gallery>

Controls

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:

<Gallery
    width='20vh'
    height='20vh'
    controls={color: '#fff', size: '2vw', weight: 'fill'}
>
<Gallery>

Dots

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:

<Gallery
    width='100%'
    height='100%'
    dots={color: 'black', size: '20px' inside: true}
>
</Gallery>
1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.14

3 years ago

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago