File Viewer
- from @retab
One viewer for any file: detects the type and lazy-loads the matching renderer (PDF, DOCX, XLSX, PPTX, CSV, images) plus inline, virtualized text/code/JSON, Markdown (sandboxed), and HTML (sandboxed). Only the needed parser is ever downloaded.
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/file-viewerLive preview
No live preview has been built for this component yet.
Registry dependencies16
- @retab/utils
- button
- @retab/pdf-viewer
- @retab/docx-viewer
- @retab/image-viewer
- @retab/pptx-viewer
- @retab/xlsx-viewer
- @retab/csv-viewer
- @retab/code-viewer
- @retab/text-viewer-chenglou
- @retab/markdown-viewer
- @retab/viewer-controls
- @retab/skeleton
- separator
