React PDF by lmtri
A React component to view a PDF document, very easy to use. It's written in TypeScript, and powered by React hooks completely.
import PdfViewer from "@lmtri/react-pdf-viewer"
import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';
<PdfViewer
// src: string | Blob
src={"https://pdfobject.com/pdf/sample.pdf"}
fileName='sample.pdf'
/>
Features
Basic features
Customization
License
The MIT License.
☕︎ You can give me a cup of coffee here🤗.
About
This project is developed by Lieu Minh Tri.