react-zoom-carousel

1.17.0 • Public • Published

react-zoom-carousel

NPM JavaScript Style Guide

Install

npm install --save react-zoom-carousel

Usage

import React, { Component } from 'react'
 
import ZoomGallery from 'react-zoom-carousel'
 
const zoomGallery = [
  'http://placehold.it/900x',
  'http://placehold.it/900x',
  'http://placehold.it/900x',
  'http://placehold.it/900x',
  'http://placehold.it/900x'
]
class Example extends Component {
  state = {
    open: true,
  }
 
  render () {
    return (
      <ZoomGallery
        open={this.state.open} // Conditionally show/hide the carousel
        handleClose={() => this.setState({ open: false })} // Called when close button is clicked
        images={zoomGallery} // Array of image urls
        initialIndex={0} // Index to start the slider from
      />
    )
  }
}

License

MIT © devil1991

Readme

Keywords

none

Package Sidebar

Install

npm i react-zoom-carousel

Weekly Downloads

13

Version

1.17.0

License

MIT

Unpacked Size

3.75 MB

Total Files

6

Last publish

Collaborators

  • devil1991