Retab UI
is a shadcn registry for products where files, schemas, citations, and extracted data need to live in the same interface. Install the pieces you need as local React and Tailwind source, then adapt them inside your own design system.
The library focuses on the awkward surfaces generic UI kits usually skip: multi-format file rendering, OCR layout review, source-backed JSON fields, upload intake, thumbnail generation, schema editing, and workflow blocks for parse, extract, split, and partition results.
Project Map
- Documentation:
- Components:
- Examples:
- GitHub:
- Registry namespace:
@retab/*
Install One Surface
Add a registry item with the shadcn CLI:
Render the generated component from your app:
The install writes source files into your repository. Keep the generated code as
part of your app, and adjust aliases such as @/components/ui/file-viewer or
@/components/blocks/ocr-block if your project uses a different layout.
Component Snapshots
Sources Viewer
Put extracted fields beside their evidence. PDF, image, text, CSV, Excel, and Word sources all use the same interaction model: focus a value, reveal the region, line, cell, or span behind it.

OCR
Inspect OCR output as a document, not as raw provider JSON. The block pairs the page image with normalized text blocks, confidence metadata, and provider switching for Google Document AI, AWS Textract, and Azure Document Intelligence.

File System
A document workspace over object-store manifests. List, grid, and column views
share selection, lazy folders, generated thumbnails, and a persistent
FileViewer preview.

File Thumbnail
Preview files before users open them. The thumbnail frame accepts files, URLs, blobs, inline text, generated preview images, and custom preview content.
Core Registry Items
Workflow Blocks
Run Locally
The docs app runs at http://localhost:3100.
Maintainers
Retab UI is built by .
License
Licensed under the MIT license [blocked].