1.0.5 • Published 7 years ago

react-imagepreview v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Introduction

Previews images according to the imgUrl and the img Element

Install with npm:

npm install react-imagepreview

Usage

import React from 'react'
import ImagePreview from 'react-imagepreview'

function MyComponent() {
  return (
    <div>
      <img src={src} onClick={(e) => ImagePreview.show(src, e.target)}>
    </div>
  )
}

Demo

cd demo
npm install
npm start
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago