0.1.5 • Published 12 months ago

tailwind-pdf-viewer v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Tailwind PDF Viewer

Installation

npm i tailwind-pdf-viewer

Usage

To use the component, first import PDFViewer into your app:

import PDFViewer from "tailwind-pdf-viewer";

Import tailwind-pdf-viewer/style.css to apply styling

import "tailwind-pdf-viewer/style.css";

PDFViewer takes one prop pdfURL which can be set to your PDF location (this can be an online PDF location as well as long as CORS is allowed)

import PDFViewer from "tailwind-pdf-viewer";
import "tailwind-pdf-viewer/style.css";
import pdf from "./resume.pdf";

const App = () => {
  return <PDFViewer pdfURL={pdf} />;
};

export default App;
0.1.0

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.0.7

12 months ago

0.1.5

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago