Andrew Luo

PDF Viewer

Component 148

About

A basic PDF viewer, using shadcn components + react-pdf

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

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

const DemoOne = () => {
  return (
    <div className="flex w-full h-screen justify-center items-center">
      <Component url="https://arxiv.org/pdf/1706.03762"/>
    </div>
  );
};

export { DemoOne };

Dependencies

More by Andrew Luo

View all
  • Filters

    Filters

    1.1K
  • Sidebar

    Sidebar

    660
  • 3D Icon Tabs

    3D Icon Tabs

    302