1.0.5 • Published 8 years ago

react-imagepreview v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago