Components
A React PDF viewer with page controls, zoom, search, text selection, thumbnails, uploads, and responsive document layouts. Built by Extend UI.
Loading preview...
"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>
)
}