Reusables

Pdf viewers

Sidebar PDF Viewer

A PDF viewer with a collapsible sidebar for page navigation and table of contents.

Features

  • Collapsible sidebar
  • Page navigation
  • Table of contents
  • Mobile responsive
  • Dark mode support

Installation

npx shadcn@latest add "https://reusables.vercel.app/r/sidebar-viewer"

Usage

import { SidebarViewer } from "@/components/pdf-viewers/sidebar-viewer"
 
export default function PDFViewer() {
  return <SidebarViewer url="path/to/your.pdf" />
}

Examples

Table of Contents

1 / -

Reference

PropTypeDefault
url
string
-
Edit on GitHub

Last updated on

On this page