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/split-consensus-lukas-viewer-block

Split Consensus Lukas

retab-ui/split-consensus-lukas-viewer-block
FreeBlock

The split benchmark diagram from Lukas Bjorkland's article, with GT, Split v1, Split v2, the PDF pane, and the same dark metrics table treatment.

Install it

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

Source

registry/new-york-v4/blocks/split-consensus-lukas-viewer-block.tsxui.retab.com/r/split-consensus-lukas-viewer-block.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { useKeyedLayoutEffect } from "@/hooks/use-keyed-layout-effect";
6import { joinEffectKey } from "@/lib/effect-key";
7import { cn } from "@/lib/utils";
8import {
9 FileViewer,
10 FileViewerContent,
11 FileViewerControls,
12 FileViewerHeader,
13 FileViewerInset,
14 FileViewerProvider,
15 FileViewerSidebar,
16 FileViewerSidebarContent,
17 FileViewerSidebarTrigger,
18 FileViewerTitle,
19 FileViewerViewport,
20} from "@/components/ui/file-viewer";
21import {
22 PdfViewerPages,
23 PdfViewerProvider,
24 type PdfViewerHandle,
25} from "@/components/ui/pdf-viewer";
26import {
27 SHOWCASE_DOC,
28 type ShowcaseSeg,
29} from "@/components/blocks/split-consensus-lukas-data";
30
31const POLITAX_ASSET_BASE_URL =
32 "https://storage.googleapis.com/retab-public-assets/politaxsplit";
33
34const DOC = SHOWCASE_DOC;
35
36const SOURCE = {
37 kind: "url" as const,
38 downloadUrl: remotePdfUrl(DOC.document),
39 fileName: DOC.document,
40 url: proxiedPdfUrl(DOC.document),
41};
42
43// Vertical strip layout copied from the Lukas Bjorkland split benchmark post.
44// Three columns (GT, Split v1, Split v2). Pages run top to bottom. The SVG is
45// sized to its measured container so the bars fill the full sidebar height and
46// width without distorting the labels.
47const DEFAULT_W = 320;
48const DEFAULT_H = 560;
49const PAD = { top: 44, right: 10, bottom: 28, left: 48 };
50const NUM_COLS = 3;
51const COL_GAP = 12;
52
53const TYPE_COLORS: Record<string, string> = {
54 "Form 1040": "#4e79a7",
55 "Schedule 1 (Form 1040)": "#f28e2b",
56 "Schedule 2 (Form 1040)": "#e15759",
57 "Schedule 3 (Form 1040)": "#ff9da7",
58 "Schedule 4 (Form 1040)": "#86bcb6",
59 "Schedule 5 (Form 1040)": "#bab0ac",
60 "Form 2210": "#9c755f",
61 "Schedule A (Form 1040)": "#76b7b2",
62 "Schedule B (Form 1040)": "#59a14f",
63 "Schedule C (Form 1040)": "#edc948",
64 "Schedule D (Form 1040)": "#b07aa1",
65 "Schedule E (Form 1040)": "#fabfd2",
66 "Schedule H (Form 1040)": "#8cd17d",
67 "Schedule SE (Form 1040)": "#d4a6c8",
68 "Schedule K-1 (Form 1065)": "#ff7f50",
69 "Schedule K-1 (Form 1120-S)": "#ffb347",
70 "Schedule K (Form 1065)": "#c49c94",
71 "Schedule L (Form 1065)": "#dbdb8d",
72 "Schedule M-2 (Form 1065)": "#8d6e63",
73 "Schedule M-3 (Form 1120/1065)": "#9edae5",
74 "Form 1065": "#17becf",
75 "Form 1120-S": "#aec7e8",
76 "Form 4562": "#ffbb78",
77 "Form 4136": "#98df8a",
78 "Form 4797": "#f7b6d2",
79 "Form 5471": "#c5b0d5",
80 "Form 6251": "#a0cbe8",
81 "Form 709": "#c68a89",
82 "Form 8283": "#e7cb94",
83 "Form 8582": "#e7ba52",
84// … truncated

What it pulls in

Other registry items

  • @retab/file-viewer
  • @retab/pdf-viewer
  • @retab/use-keyed-layout-effect
  • @retab/effect-key

Files it writes

  • registry/new-york-v4/blocks/split-consensus-lukas-viewer-block.tsx
  • registry/new-york-v4/blocks/split-consensus-lukas-data.ts
  • app/api/politax-pdf/[prefix]/[document]/route.ts

Facts

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

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