viewerjs-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

viewerjs-react

Typescript supported react wrapper for viewerjs.

NPM JavaScript Style Guide

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    500
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    500
  • 1.0.1
    2
  • 1.0.0
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i viewerjs-react

Weekly Downloads

302

Version

1.0.2

License

MIT

Unpacked Size

10.2 kB

Total Files

9

Last publish

Collaborators

  • tinymins