
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
react-doc-viewer-plus
Advanced tools
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos.
npm install react-doc-viewer-plus
# or
yarn add react-doc-viewer-plus
import { DocViewerPlus } from 'react-doc-viewer-plus';
function App() {
const [visible, setVisible] = useState(false);
return (
<DocViewerPlus
previewFile={{
fileUrl: 'https://example.com/sample.pdf',
fileName: 'Sample Document.pdf'
}}
visibleViewerPlus={visible}
onVisibleChange={() => setVisible(!visible)}
/>
);
}




| Prop | Type | Description |
|---|---|---|
| previewFile | { fileUrl?: string; fileName?: string; } | The file to preview |
| response | { url?: string; } | Optional response object containing alternative URL |
| visibleViewerPlus | boolean | Controls the visibility of the viewer |
| onVisibleChange | () => void | Callback when visibility changes |
MIT
FAQs
A powerful document viewer component for React that supports various file formats including images, PDF, Office documents, OFD files and videos
The npm package react-doc-viewer-plus receives a total of 473 weekly downloads. As such, react-doc-viewer-plus popularity was classified as not popular.
We found that react-doc-viewer-plus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.