Render DOCX files in React and Vue.
Add a React or Vue DOCX viewer with paginated layout and document fonts. Render tables, images, headers, and footers. Add Pro to review comments and tracked changes.
View and edit a DOCX file
Explore the sample document, or open your own .docx file.
Render DOCX document structure in React or Vue.
Vue DOCX viewer
Faithful DOCX document preview
How to build a DOCX viewer in React or Vue.
Use the editor in view mode for a read-only document surface. Keep DOCX bytes available when users need editing.
- 01
Install the React or Vue adapter
Choose the adapter for your application. Both adapters use the shared document engine and DOCX output.
- 02
Load DOCX bytes and configure fonts
Pass the document bytes to the editor. Provide embedded fonts, licensed fonts, or metric-compatible substitutes for accurate wrapping.
- 03
Open editing and review when needed
Start in view mode. Open the document in edit mode, or add Pro for comments, revisions, and suggesting mode.
Examples by industry.
You define access, validation, retention, and approval rules. DOCX Editor applies supported document operations.
Legal
Contract and evidence preview
- Preview uploaded contracts
- Show comments and redlines
- Open the file for editing
Healthcare
Clinical document portals
- Preview generated letters
- Review formatted policies
- Keep documents inside your application
Quality
Procedures and controlled records
- Review tables and numbered steps
- Display headers and page fields
- Open comments and tracked changes
Common questions
Can I use the viewer in React?+
Yes. The React package renders DOCX files and provides components for your application interface.
Can users edit the preview?+
Yes. The document surface supports read-only, editing, and suggesting modes.
Does the viewer convert DOCX files to PDF?+
No. It renders the DOCX document in the browser and saves DOCX output.
Do comments and tracked changes require Pro?+
Yes. Add the Pro review module to inspect comments, review revisions, and use suggesting mode.
Can I use the DOCX viewer with Next.js?+
Yes. Mount the editor in a client component and load the document after the browser starts.
Do I need the original document fonts?+
No. Use embedded fonts, licensed font files, or metric-compatible substitutes. Font metrics affect line wrapping and pagination.
Is the React and Vue DOCX viewer open source?+
Yes. The React and Vue editor packages use Apache 2.0. Pro review features use commercial terms.
Add DOCX editing to your application.
Start with the open-source editor. Add commercial review and automation features when your workflow needs them.