React + TypeScript guide

Render Office files in the browser with React.

A portable React integration for displaying DOCX, XLSX, and PPTX files with @silurus/ooxml. Choose a local file and render it without uploading it.

npm install @silurus/ooxml
Formats
DOCX · XLSX · PPTX
Language
TypeScript
Integration
useOfficeViewer
Rendering
Canvas + WebAssembly

Framework example

Read the code. Run it on StackBlitz.

Browse the complete React project here, then open the live project to choose a local DOCX, XLSX, or PPTX file.