Split Consensus Lukas
retab-ui/split-consensus-lukas-viewer-blockFreeBlock
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.jsonSource
1"use client";23import * as React from "react";45import { 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";3031const POLITAX_ASSET_BASE_URL =32 "https://storage.googleapis.com/retab-public-assets/politaxsplit";3334const DOC = SHOWCASE_DOC;3536const SOURCE = {37 kind: "url" as const,38 downloadUrl: remotePdfUrl(DOC.document),39 fileName: DOC.document,40 url: proxiedPdfUrl(DOC.document),41};4243// 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 is45// sized to its measured container so the bars fill the full sidebar height and46// 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;5253const 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
Files it writes
More from retab-ui
All 130 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Classify Consensusclassify-consensus-viewer-block | retab-ui | Blocks | Free | 1 dep · 4 files | |
| CSV Sourcescsv-sources-block | retab-ui | Blocks | Free | no deps · 2 files | |
| DOCX Sourcesdocx-sources-block | retab-ui | Blocks | Free | no deps · 2 files | |
| Avatar Image Slotdropzone-avatar-image-slot | retab-ui | Blocks | Free | 1 dep · 2 files | |
| Dropzonedropzone-block | retab-ui | Blocks | Free | 1 dep · 26 files | |
| Comparison Pairdropzone-comparison-pair-upload | retab-ui | Blocks | Free | 1 dep · 2 files | |
| Controlled Queuedropzone-controlled-queue | retab-ui | Blocks | Free | 1 dep · 2 files | |
| Custom Thumbnail Griddropzone-custom-thumbnail-grid | retab-ui | Blocks | Free | 1 dep · 2 files |
