viewerjs-react
v1.0.2
Published
Typescript supported react wrapper for viewerjs.
Downloads
778
Maintainers
Readme
viewerjs-react
Typescript supported react wrapper for viewerjs.
Install
npm install --save viewerjs@^1.9.0 viewerjs-react
Usage
import React, { Component } from 'react'
import RViewerJS from 'viewerjs-react'
import 'viewerjs-react/dist/index.css'
class Example extends Component {
render() {
return <RViewerJS>
<img src="xxx" />
</RViewerJS>
}
}
Props
options
Will passby to viewerjs. See ViewerJS Options Document.
License
MIT © tinymins