Gathering detailed insights and metrics for @max_alieksieiev/react-pdf-viewer-root
Gathering detailed insights and metrics for @max_alieksieiev/react-pdf-viewer-root
Gathering detailed insights and metrics for @max_alieksieiev/react-pdf-viewer-root
Gathering detailed insights and metrics for @max_alieksieiev/react-pdf-viewer-root
A React component to view a PDF document
npm install @max_alieksieiev/react-pdf-viewer-root
Typescript
Module System
Node Version
NPM Version
TypeScript (95.72%)
SCSS (3.66%)
JavaScript (0.62%)
CSS (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
3,266 Commits
1 Branches
1 Contributors
Updated on Nov 02, 2023
Latest Version
0.0.0
Package Id
@max_alieksieiev/react-pdf-viewer-root@0.0.0
Unpacked Size
64.65 MB
Size
3.04 MB
File Count
1,122
NPM Version
8.19.3
Node Version
18.13.0
Published on
Nov 06, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
500
31
A React component to view a PDF document. It's written in TypeScript, and powered by React hooks completely. It's forked package, and added touchEvent for highlight
1// Core viewer 2import { Viewer } from '@react-pdf-viewer/core'; 3 4// Plugins 5import { defaultLayoutPlugin } from '@react-pdf-viewer/default-layout'; 6 7// Import styles 8import '@react-pdf-viewer/core/lib/styles/index.css'; 9import '@react-pdf-viewer/default-layout/lib/styles/index.css'; 10 11// Create new plugin instance 12const defaultLayoutPluginInstance = defaultLayoutPlugin(); 13 14<Viewer 15 fileUrl='/assets/pdf-open-parameters.pdf' 16 plugins={[ 17 // Register plugins 18 defaultLayoutPluginInstance, 19 ... 20 ]} 21/>
Basic features
Customization
This project is developed by Nguyen Huu Phuoc. I love building products and sharing knowledge. But forked by Maks Alieksieiev.
No vulnerabilities found.
No security vulnerabilities found.