1.17.0 • Published 4 years ago

react-zoom-carousel v1.17.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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

1.15.0

4 years ago

1.14.0

4 years ago

1.13.0

4 years ago

1.12.0

4 years ago

1.17.0

4 years ago

1.16.0

4 years ago

1.11.0

5 years ago

1.10.0

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago