react-medium-zoom

1.0.0 • Public • Published

react-medium-zoom

A React library for zooming images like Medium

NPM JavaScript Style Guide

Install

npm install --save react-medium-zoom

Usage

import React, { Component } from 'react'
 
import ReactMediumImg from 'react-medium-zoom'
 
class App extends Component {
  render () {
    return (
      <ReactMediumImg
        src={'image'}
        onOpen={() => console.log('Image Open')}
        onClosed={() => console.log('Image closed')}
        {...allImageProps}
      />
    )
  }
}

License

MIT © shahen94

Readme

Keywords

none

Package Sidebar

Install

npm i react-medium-zoom

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

85 kB

Total Files

6

Last publish

Collaborators

  • shahen