Extend

PDF Viewer

Component 1

About

A React PDF viewer with page controls, zoom, search, text selection, thumbnails, uploads, and responsive document layouts. Built by Extend UI.

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

Code

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

Usage.tsx

"use client"

import { PDFViewer } from "@/components/ui/pdf-viewer"

export default function Demo() {
  return (
    <div className="h-[720px] w-full overflow-hidden rounded-lg border bg-background">
      <PDFViewer
        src="https://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf"
        fileName="sample.pdf"
        className="h-full"
      />
    </div>
  )
}

Dependencies

More by Extend

View all
  • Bounding Box Citations

    Bounding Box Citations

    51
  • Layout Blocks

    Layout Blocks

    13
  • Color Picker

    Color Picker

    5
  • Autocomplete

    Autocomplete

  • Tooltip

    Tooltip

  • Popover

    Popover

  • Separator

    Separator

  • Input

    Input