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/edit-viewer-block

Edit Viewer

retab-ui/edit-viewer-block
FreeBlock

Detected form fields beside a PDF source document, linked by their bbox — hover or select a field to highlight its region on the page; Preview stamps values over the source, and Filled renders a supplied output file.

Install it

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

Source

registry/new-york-v4/blocks/edit-viewer-block.tsxui.retab.com/r/edit-viewer-block.json
1"use client";
2
3import { EditViewer } from "@/components/viewers/edit/edit-viewer";
4import type { FormField } from "@/components/viewers/lib/edit-types";
5import editSample from "@/components/viewers/sample-data/edit.json";
6
7const ORIGINAL_PDF_URL = "/samples/fidelity-edit/fidelity_original.pdf";
8
9// A template-fill of the Fidelity "Bank Wire Authorization" form: 29 detected
10// form fields across 3 pages, each with a normalized bbox and an inferred value.
11const EDIT_FIELDS = editSample as FormField[];
12
13/**
14 * Edit viewer block — detected fields beside the source document, linked by
15 * their bbox. `EditViewer` owns edit-specific modes, field visuals, search,
16 * filters, and page grouping while segmented-document owns hover,
17 * selection, and scroll-to-field behavior.
18 */
19export function EditViewerBlock() {
20 return (
21 <div className="bg-background flex h-full min-h-[680px] flex-col">
22 <EditViewer
23 result={{ fields: EDIT_FIELDS }}
24 sourceDocument={{
25 src: ORIGINAL_PDF_URL,
26 mimeType: "application/pdf",
27 filename: "fidelity-bank-wire-authorization.pdf",
28 }}
29 />
30 </div>
31 );
32}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @retab/pdf-viewer
  • @retab/file-viewer
  • @retab/scroll-area
  • tabs
  • @retab/segmented-document
  • @retab/document-anchor

Files it writes

  • registry/new-york-v4/blocks/edit-viewer-block.tsx
  • components/viewers/edit/edit-viewer.tsx
  • components/viewers/edit/edit-viewer-types.ts
  • components/viewers/edit/edit-viewer-model.ts
  • components/viewers/edit/edit-viewer-field-style.ts
  • components/viewers/edit/edit-viewer-store.tsx
  • components/viewers/edit/edit-viewer-provider.tsx
  • components/viewers/edit/edit-viewer-anatomy.tsx
  • components/viewers/edit/edit-viewer-document.tsx
  • components/viewers/edit/edit-viewer-fields.tsx
  • components/viewers/edit/edit-viewer-header.tsx
  • components/viewers/edit/edit-viewer-states.tsx
  • components/viewers/edit/edit-viewer-controls.tsx
  • components/viewers/edit/edit-viewer-overlays.tsx
  • components/viewers/edit/edit-viewer-field-panel.tsx
  • components/viewers/edit/edit-viewer-document-pane.tsx
  • components/viewers/lib/edit-types.ts
  • components/viewers/sample-data/edit.json

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
18
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