DOCX Viewer
- from @retab
A docx-preview-backed Word viewer: faithful paginated pages, continuous scroll, zoom, fit-to-width, and download. Off-screen pages are skipped via CSS content-visibility.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @retab/docx-viewerLive preview
No live preview has been built for this component yet.
Registry dependencies10
- @retab/docx-document-resource
- @retab/utils
- button
- @retab/scroll-area
- separator
- @retab/skeleton
- dropdown-menu
- @retab/viewer-controls
- @retab/use-mount-effect
- @retab/use-keyed-layout-effect
