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
- @embedpdf/core
- @embedpdf/models
- @hugeicons/react
- @embedpdf/plugin-zoom
- @embedpdf/plugin-render
- @embedpdf/plugin-rotate
- @embedpdf/plugin-scroll
- @embedpdf/plugin-search
- @embedpdf/plugin-tiling
- @embedpdf/plugin-viewport
- @embedpdf/plugin-selection
- @embedpdf/plugin-thumbnail
- @hugeicons/core-free-icons
- @embedpdf/plugin-document-manager
- @embedpdf/plugin-interaction-manager







