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/primitive-cards-block

Primitive Run Cards

retab-ui/primitive-cards-block
FreeBlock

Each Retab primitive's result framed as a run card — a document thumbnail with a status pill and the primitive's output in the card body. Classification shows the page with its category and reasoning; split a mini page rail of color-keyed subdocuments; partition a keyed-chunk legend with an overlap ribbon; parse the page rendered as markdown; extract the page with each field's source box drawn over it. Composes the primitive-run-cards components over sample results.

Install it

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

Source

registry/new-york-v4/blocks/primitive-cards-block.tsxui.retab.com/r/primitive-cards-block.json
1"use client";
2
3import { toSegments } from "@/lib/segments";
4import {
5 ClassificationRunCard,
6 ExtractRunCard,
7 ParseRunCard,
8 PartitionRunCard,
9 SplitRunCard,
10 type ExtractRunCardField,
11} from "@/components/ui/primitive-run-cards";
12import type { ClassifyResult } from "@/components/viewers/lib/classify-types";
13import type { PartitionResult } from "@/components/viewers/lib/partition-types";
14import type { SplitView } from "@/components/viewers/lib/split-types";
15import extractSample from "@/components/viewers/sample-data/extract.json";
16import parseSample from "@/components/viewers/sample-data/parse.json";
17
18// ── Per-primitive sample results, each framed as a completed "run". ───────────
19
20const CLASSIFICATION = {
21 file: { name: "loan-application.pdf", type: "application/pdf" },
22 thumbnail: "/samples/loan-application-page-1.png",
23 result: {
24 category: "Loan Application",
25 reasoning:
26 "A Uniform Residential Loan Application (Form 1003): borrower, employment, and property details for a mortgage request.",
27 } satisfies ClassifyResult,
28};
29
30const SPLIT = {
31 file: { name: "an-image-is-worth-16x16-words.pdf", type: "application/pdf" },
32 thumbnail: "/samples/an-image-is-worth-16x16-words-page-1.png",
33 result: {
34 output: [
35 { name: "Title, Abstract & Introduction", pages: [1] },
36 { name: "Related Work", pages: [2] },
37 { name: "Method", pages: [3] },
38 { name: "Experiments", pages: [4, 5, 6, 7, 8] },
39 { name: "Conclusion & References", pages: [9, 10, 11, 12] },
40 { name: "Appendix", pages: [13, 14, 15, 16, 17, 18, 19, 20, 21, 22] },
41 ],
42 } satisfies SplitView,
43};
44
45const PARTITION = {
46 file: { name: "an-image-is-worth-16x16-words.pdf", type: "application/pdf" },
47 thumbnail: "/samples/an-image-is-worth-16x16-words-page-1.png",
48 result: {
49 output: [
50 { key: "abstract", pages: [1] },
51 { key: "introduction", pages: [1, 2] },
52 { key: "related_work", pages: [2] },
53 { key: "method", pages: [3, 4] },
54 { key: "experiments", pages: [4, 5, 6, 7, 8] },
55 { key: "conclusion", pages: [9] },
56 { key: "references", pages: [9, 10, 11, 12] },
57 { key: "appendix", pages: [13, 14, 15, 16, 17, 18, 19, 20, 21, 22] },
58 ],
59 } satisfies Pick<PartitionResult, "output">,
60};
61
62const PARSE = {
63 file: { name: "bank-statement.pdf", type: "application/pdf" },
64 markdown: (parseSample.output.pages[0] as string)
65 .split("\n")
66 .slice(0, 18)
67 .join("\n"),
68};
69
70// … truncated

What it pulls in

Other registry items

  • @retab/primitive-run-cards

Files it writes

  • registry/new-york-v4/blocks/primitive-cards-block.tsx
  • components/viewers/lib/classify-types.ts
  • components/viewers/lib/split-types.ts
  • components/viewers/lib/partition-types.ts
  • components/viewers/sample-data/extract.json
  • components/viewers/sample-data/parse.json

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
6
Licence
NOASSERTION
In the index
at or before 2026-08-13
Last confirmed
today

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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