Extend

Layout Blocks

Component 13

About

A scrollable review panel that lists OCR/layout-detection blocks (headings, paragraphs, tables, figures, etc.) from a document with type badges, confidence scores, and page numbers, for inspecting the text layer behind scanned or image-heavy PDFs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Layout Blocks to your project and fits it to your theme.

Code

How Layout Blocks is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import LayoutBlocks from "@/components/ui/layout-blocks";

export default function LayoutBlocksDemo() {
  return (
    <div className="w-full max-w-sm">
      <LayoutBlocks />
    </div>
  );
}

Dependencies

More by Extend

View all
  • Bounding Box Citations

    Bounding Box Citations

    51
  • Color Picker

    Color Picker

    5
  • Autocomplete

    Autocomplete

  • Tooltip

    Tooltip

  • Popover

    Popover

  • Separator

    Separator

  • Input

    Input

  • Spinner

    Spinner

Explore more