https://github.com/tinymins/viewerjs-react
React wrapper for viewerjs.
https://github.com/tinymins/viewerjs-react
Last synced: 6 months ago
JSON representation
React wrapper for viewerjs.
- Host: GitHub
- URL: https://github.com/tinymins/viewerjs-react
- Owner: tinymins
- Created: 2021-01-01T06:11:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T15:26:55.000Z (about 5 years ago)
- Last Synced: 2025-07-31T00:12:12.488Z (6 months ago)
- Language: TypeScript
- Size: 383 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# viewerjs-react
> Typescript supported react wrapper for viewerjs.
[](https://www.npmjs.com/package/viewerjs-react) [](https://standardjs.com)
## Install
```bash
npm install --save viewerjs@^1.9.0 viewerjs-react
```
## Usage
```tsx
import React, { Component } from 'react'
import RViewerJS from 'viewerjs-react'
import 'viewerjs-react/dist/index.css'
class Example extends Component {
render() {
return
}
}
```
## Props
### options
Will passby to viewerjs. See [ViewerJS Options Document](https://github.com/fengyuanchen/viewerjs/blob/master/README.md#options).
## License
MIT © [tinymins](https://github.com/tinymins)