GitHub

Introduction

Open source React components for building document AI product surfaces on top of Retab.

Retab UI is an open source React component library for building document processing applications. It gives you headless components for viewing files, navigating documents, and reviewing structured data: the surfaces every document-heavy product needs.

Every component installs as source through the shadcn registry, so you own the code and control the styling.

The File Viewer

The File Viewer is the centerpiece. One headless compound component renders PDF, image, CSV, text, email, and Office formats through a single tuned motion system, and owns file identity, header, body layout, sidebar state, renderer routing, and file-scoped controls.

Everything else

  • Viewers & navigation: pages, sheets, sections, segments, and attachments.
  • Forms & data: render and edit schema-driven extraction output.
  • Review surfaces: inspect, validate, and ground results against the source.

The base primitives (button, tabs, dialog, popover, tooltip, sidebar, and the rest) are standard shadcn/ui components; icons come from Lucide.

Start with Components for the full list.