BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/retab-ui/file-viewer

File Viewer

retab-ui/file-viewer
FreeComponent

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 it

npx shadcn@latest add https://ui.retab.com/r/file-viewer.json

Source

registry/new-york-v4/ui/file-viewer.tsxui.retab.com/r/file-viewer.json
1"use client";
2
3export type { ViewerSource } from "./file-viewer-core";
4export {
5 FileViewerContent,
6 FileViewerInset,
7 FileViewerLegend,
8 FileViewerViewport,
9 type FileViewerContentProps,
10 type FileViewerInsetProps,
11 type FileViewerLegendProps,
12 type FileViewerViewportProps,
13} from "./file-viewer-layout";
14export {
15 FileViewerSidebar,
16 FileViewerSidebarContent,
17 FileViewerSidebarFooter,
18 FileViewerSidebarHeader,
19 FileViewerSidebarRail,
20 FileViewerSidebarSection,
21 FileViewerSidebarSectionAction,
22 FileViewerSidebarSectionContent,
23 FileViewerSidebarSectionHeader,
24 FileViewerSidebarSectionTitle,
25 FileViewerSidebarSeparator,
26 type FileViewerSidebarProps,
27 type FileViewerSidebarContentProps,
28 type FileViewerSidebarFooterProps,
29 type FileViewerSidebarHeaderProps,
30 type FileViewerSidebarRailProps,
31 type FileViewerSidebarSectionActionProps,
32 type FileViewerSidebarSectionContentProps,
33 type FileViewerSidebarSectionHeaderProps,
34 type FileViewerSidebarSectionProps,
35 type FileViewerSidebarSectionTitleProps,
36 type FileViewerSidebarSeparatorProps,
37} from "./file-viewer-sidebar";
38export {
39 FileViewerDocument,
40 type FileViewerDocumentProps,
41} from "./file-viewer-document";
42export {
43 FileViewerControls,
44 FileViewerHeader,
45 FileViewerMeta,
46 FileViewerSidebarTrigger,
47 FileViewerTitle,
48 type FileViewerControlsProps,
49 type FileViewerHeaderProps,
50 type FileViewerMetaProps,
51 type FileViewerSidebarTriggerProps,
52 type FileViewerTitleProps,
53} from "./file-viewer-header";
54export {
55 FileViewerEmptyState,
56 FileViewerErrorState,
57 FileViewerLoadingState,
58 FileViewerUnavailableState,
59 FileViewerUnsupportedState,
60 type FileViewerErrorStateProps,
61 type FileViewerStateProps,
62 type FileViewerUnsupportedStateProps,
63} from "./file-viewer-state";
64export { useFileViewerResource } from "./file-viewer-resource-state";
65export {
66 FileViewerPreview,
67 type FileViewerPreviewProps,
68} from "./file-viewer-preview";
69export {
70 useFileViewerSidebar,
71 type FileViewerHeaderMode,
72 type FileViewerSidebarValue,
73} from "./file-viewer-context";
74export {
75 FileViewer,
76 type FileViewerLayout,
77 type FileViewerProps,
78} from "./file-viewer-shell";
79export {
80 FileViewerProvider,
81 type FileViewerProviderProps,
82} from "./file-viewer-provider";

What it pulls in

npm packages

  • lucide-react
  • marked@18.0.5
  • dompurify@3.4.9
  • @radix-ui/react-slot@^1.1.1
  • class-variance-authority@^0.7.1
  • radix-ui@^1.5.0

Other registry items

  • @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
  • @retab/spinner
  • @retab/email-viewer

Files it writes

  • registry/new-york-v4/ui/file-viewer.tsx
  • registry/new-york-v4/ui/file-viewer-accessibility.ts
  • registry/new-york-v4/ui/file-viewer-layout.tsx
  • registry/new-york-v4/ui/file-viewer-context.tsx
  • registry/new-york-v4/ui/file-viewer-core.ts
  • registry/new-york-v4/ui/file-viewer-document.tsx
  • registry/new-york-v4/ui/file-viewer-elements.ts
  • registry/new-york-v4/ui/file-viewer-fallback.tsx
  • registry/new-york-v4/ui/file-viewer-shell.tsx
  • registry/new-york-v4/ui/file-viewer-shell-controller.ts
  • registry/new-york-v4/ui/file-viewer-shell-keyboard.ts
  • registry/new-york-v4/ui/file-viewer-sidebar-controller.ts
  • registry/new-york-v4/ui/file-viewer-motion-kernel.ts
  • registry/new-york-v4/ui/viewer-motion-telemetry.ts
  • registry/new-york-v4/ui/file-viewer-header.tsx
  • registry/new-york-v4/ui/file-viewer-html-viewer.tsx
  • registry/new-york-v4/ui/file-viewer-html-srcdoc-cache.ts
  • registry/new-york-v4/ui/file-viewer-preview.tsx
  • registry/new-york-v4/ui/file-viewer-provider.tsx
  • registry/new-york-v4/ui/file-viewer-renderer-contract.ts
  • registry/new-york-v4/ui/file-viewer-renderer-frame.tsx
  • registry/new-york-v4/ui/file-viewer-resource-state.ts
  • registry/new-york-v4/ui/file-viewer-route.tsx
  • registry/new-york-v4/ui/file-viewer-prewarm.ts
  • registry/new-york-v4/ui/file-viewer-state.tsx
  • registry/new-york-v4/ui/file-viewer-sidebar.tsx
  • registry/new-york-v4/ui/file-viewer-motion-plan.ts
  • registry/new-york-v4/ui/file-viewer-text-resource.ts
  • registry/new-york-v4/ui/viewer.tsx
  • registry/new-york-v4/ui/viewer-body.tsx
  • registry/new-york-v4/ui/viewer-chrome.tsx
  • registry/new-york-v4/ui/viewer-diagnostics.ts
  • registry/new-york-v4/ui/viewer-header-outlet.tsx
  • registry/new-york-v4/ui/viewer-internals.tsx
  • registry/new-york-v4/ui/viewer-measurement.ts
  • registry/new-york-v4/ui/viewer-root.tsx
  • registry/new-york-v4/ui/viewer-sidebar.tsx
  • registry/new-york-v4/ui/viewer-surface.tsx
  • registry/new-york-v4/ui/viewer-types.ts
  • registry/new-york-v4/ui/viewer-zoom.tsx

Facts

Registry
retab-ui
Type
registry:ui
Access
Free
Files written
49
Licence
NOASSERTION
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

ui.retab.com retab-dev/retab-ui on GitHub Raw registry item This item as JSON

More from retab-ui

All 130 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alertalertretab-uiComponentsFree1 dep
Alert Dialogalert-dialogretab-uiComponentsFree1 dep
Aspect Ratioaspect-ratioretab-uiComponentsFreeno deps
Attachment Sidebarattachment-sidebarretab-uiComponentsFree1 dep
Autocompleteautocompleteretab-uiComponentsFree2 deps
Calendarcalendarretab-uiComponentsFree2 deps
Code Viewercode-viewerretab-uiComponentsFree2 deps · 32 files
Commandcommandretab-uiComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex