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

Parse Viewer

retab-ui/parse-viewer-block
FreeBlock

The source document beside its extracted markdown, synced by page, with a Rendered/Text toggle.

Install it

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

Source

registry/new-york-v4/blocks/parse-viewer-block.tsxui.retab.com/r/parse-viewer-block.json
1"use client";
2
3import * as React from "react";
4
5import { useKeyedMountEffect } from "@/hooks/use-keyed-mount-effect";
6import {
7 FileViewer,
8 FileViewerContent,
9 FileViewerProvider,
10 FileViewerInset,
11 FileViewerViewport,
12} from "@/components/ui/file-viewer";
13import {
14 PdfViewerPages,
15 PdfViewerProvider,
16 type PdfViewerHandle,
17} from "@/components/ui/pdf-viewer";
18import {
19 ResizableHandle,
20 ResizablePanel,
21 ResizablePanelGroup,
22} from "@/components/ui/resizable";
23import { ViewerBody, ViewerRoot, ViewerSurface } from "@/components/ui/viewer";
24import type { ParseResponse } from "@/components/viewers/lib/parse-types";
25import {
26 ParseViewerHeader,
27 ParseViewerMarkdown,
28 ParseViewerProvider,
29 useParseViewerDocument,
30} from "@/components/viewers/parse/parse-viewer";
31import parseSample from "@/components/viewers/sample-data/parse.json";
32
33const PDF_URL = "/samples/bank-statement-x4uhhi7t.pdf";
34
35// A parse of the bank-statement sample: per-page, LLM-ready markdown with the
36// transactions reconstructed as a table.
37const PARSE_RESULT: ParseResponse = {
38 output: parseSample.output as ParseResponse["output"],
39 usage: parseSample.usage as ParseResponse["usage"],
40};
41
42/**
43 * Parse viewer block — the source document beside its extracted markdown, kept
44 * in sync by page. `ParseViewer` owns the markdown pane (Rendered/Text toggle,
45 * page controls); the document surface here is FileViewer + PDF pages.
46 */
47export function ParseViewerBlock() {
48 return (
49 <div className="bg-background flex h-full min-h-[680px] flex-col">
50 <ParseViewerProvider result={PARSE_RESULT}>
51 <ViewerRoot className="bg-background h-full flex-1">
52 <ParseViewerHeader />
53 <ViewerBody>
54 <ResizablePanelGroup
55 orientation="horizontal"
56 className="min-h-0 flex-1"
57 >
58 <ResizablePanel defaultSize={52} minSize={28}>
59 <ViewerSurface className="h-full">
60 <ParseSourceDocument />
61 </ViewerSurface>
62 </ResizablePanel>
63 <ResizableHandle withHandle />
64 <ResizablePanel defaultSize={48} minSize={28}>
65 <ViewerSurface className="h-full">
66 <ParseViewerMarkdown />
67 </ViewerSurface>
68 </ResizablePanel>
69 </ResizablePanelGroup>
70 </ViewerBody>
71 </ViewerRoot>
72 </ParseViewerProvider>
73 </div>
74 );
75}
76
77function ParseSourceDocument() {
78// … truncated

What it pulls in

npm packages

  • lucide-react
  • react-markdown
  • remark-gfm
  • rehype-raw
  • hast-util-to-jsx-runtime@^2.3.6
  • remark-parse@^11.0.0
  • remark-rehype@^11.1.2
  • unified@^11.0.5

Other registry items

  • @retab/file-viewer
  • @retab/pdf-viewer
  • button
  • dropdown-menu
  • @retab/scroll-area
  • @retab/resizable
  • separator
  • @retab/spinner
  • tabs

Files it writes

  • registry/new-york-v4/blocks/parse-viewer-block.tsx
  • components/viewers/parse/parse-viewer.tsx
  • components/viewers/page-markdown/page-markdown-viewer.tsx
  • components/viewers/page-markdown/page-markdown-pane.tsx
  • components/viewers/page-markdown/page-markdown-empty-state.tsx
  • components/viewers/page-markdown/page-markdown-controls.tsx
  • components/viewers/page-markdown/page-markdown-actions.tsx
  • components/viewers/page-markdown/page-markdown-page-frame.tsx
  • components/viewers/page-markdown/page-markdown-content.tsx
  • components/viewers/page-markdown/page-markdown-components.tsx
  • components/viewers/page-markdown/page-markdown-layout.ts
  • components/viewers/page-markdown/page-markdown-scale.ts
  • components/viewers/page-markdown/page-markdown-scroll.ts
  • components/viewers/page-markdown/page-markdown-measurements.ts
  • components/viewers/page-markdown/page-markdown-sync.ts
  • components/viewers/page-markdown/page-markdown-model.ts
  • components/viewers/page-markdown/page-markdown-types.ts
  • hooks/use-element-width.ts
  • components/viewers/lib/parse-types.ts
  • components/viewers/sample-data/parse.json
  • components/viewers/page-markdown/page-markdown-projection.tsx
  • components/viewers/page-markdown/page-markdown-projection-parser.ts
  • components/viewers/page-markdown/page-markdown-projection-protocol.ts

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
23
Licence
NOASSERTION
In the index
at or before 2026-08-13
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

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex