Socket
Socket
Sign inDemoInstall

react-zoom-carousel

Package Overview
Dependencies
16
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-zoom-carousel

>


Version published
Maintainers
1
Install size
7.25 MB
Created

Readme

Source

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

FAQs

Last updated on 08 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc