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/pdf-thumbnails-block

PDF Thumbnails

retab-ui/pdf-thumbnails-block
FreeBlock

A PDF viewer with toggleable page thumbnails in a viewer navigation rail.

Install it

npx shadcn@latest add https://ui.retab.com/r/pdf-thumbnails-block.json

Source

registry/new-york-v4/blocks/pdf-thumbnails-block.tsxui.retab.com/r/pdf-thumbnails-block.json
1"use client";
2
3import {
4 FileViewer,
5 FileViewerContent,
6 FileViewerHeader,
7 FileViewerTitle,
8 FileViewerProvider,
9 FileViewerSidebar,
10 FileViewerSidebarTrigger,
11 FileViewerInset,
12 FileViewerControls,
13 FileViewerViewport,
14} from "@/components/ui/file-viewer";
15import {
16 PdfViewerPages,
17 PdfViewerProvider,
18 PdfViewerThumbnails,
19} from "@/components/ui/pdf-viewer";
20
21const PDF_URL = "/samples/nvidia-10k-fy2024.pdf";
22const PDF_SOURCE = {
23 kind: "url" as const,
24 url: PDF_URL,
25 fileName: "nvidia-10k-fy2024.pdf",
26};
27
28/**
29 * PDF viewer with page thumbnails in a navigation rail.
30 *
31 * ViewerSidebar owns placement. PdfViewerThumbnails owns PDF page
32 * thumbnail behavior, active-page highlighting, and click-to-jump navigation.
33 */
34export function PdfThumbnailsBlock() {
35 return (
36 <div className="bg-background h-full min-h-[680px]">
37 <FileViewerProvider source={PDF_SOURCE} defaultSidebarOpen>
38 <FileViewer className="h-full">
39 <PdfViewerProvider>
40 <FileViewerHeader>
41 <FileViewerSidebarTrigger className="-ml-1" />
42 <FileViewerTitle />
43 <FileViewerControls />
44 </FileViewerHeader>
45 <FileViewerContent>
46 <FileViewerSidebar
47 aria-label="PDF pages"
48 width="4.5rem"
49 className="border-r"
50 >
51 <PdfViewerThumbnails thumbnailWidth={60} />
52 </FileViewerSidebar>
53 <FileViewerInset>
54 <FileViewerViewport>
55 <PdfViewerPages bare className="h-full" />
56 </FileViewerViewport>
57 </FileViewerInset>
58 </FileViewerContent>
59 </PdfViewerProvider>
60 </FileViewer>
61 </FileViewerProvider>
62 </div>
63 );
64}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @retab/file-viewer
  • @retab/pdf-viewer
  • @retab/pdf-viewer-thumbnails
  • button

Files it writes

  • registry/new-york-v4/blocks/pdf-thumbnails-block.tsx
  • registry/new-york-v4/ui/pdf-viewer-thumbnails.tsx
  • registry/new-york-v4/ui/pdf-thumbnail-layout.ts
  • registry/new-york-v4/ui/use-pdf-thumbnail-document.ts
  • registry/new-york-v4/ui/use-pdf-thumbnail-page-metrics.ts
  • registry/new-york-v4/ui/use-pdf-thumbnail-window.ts
  • registry/new-york-v4/ui/use-thumbnail-rail-follow.ts
  • registry/new-york-v4/ui/pdf-thumbnail-rail.tsx
  • registry/new-york-v4/ui/pdf-thumbnail-item.tsx
  • registry/new-york-v4/ui/pdf-thumbnail-canvas.tsx

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
10
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
Classify Consensusclassify-consensus-viewer-blockretab-uiBlocksFree1 dep · 4 files
CSV Sourcescsv-sources-blockretab-uiBlocksFreeno deps · 2 files
DOCX Sourcesdocx-sources-blockretab-uiBlocksFreeno deps · 2 files
Avatar Image Slotdropzone-avatar-image-slotretab-uiBlocksFree1 dep · 2 files
Dropzonedropzone-blockretab-uiBlocksFree1 dep · 26 files
Comparison Pairdropzone-comparison-pair-uploadretab-uiBlocksFree1 dep · 2 files
Controlled Queuedropzone-controlled-queueretab-uiBlocksFree1 dep · 2 files
Custom Thumbnail Griddropzone-custom-thumbnail-gridretab-uiBlocksFree1 dep · 2 files
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