More Premium Hugo Themes Premium Svelte Themes

Pdfslick

View and Interact with PDFs in React, SolidJS, Svelte and JavaScript apps

Pdfslick

View and Interact with PDFs in React, SolidJS, Svelte and JavaScript apps

Author Avatar Theme by pdfslick
Github Stars Github Stars: 781
Last Commit Last Commit: Nov 18, 2025 -
First Commit Created: Aug 27, 2024 -
Pdfslick screenshot

Overview:

PDFSlick is a library that allows for the viewing and interaction with PDF documents within React, SolidJS, Svelte, and JavaScript applications. It leverages Mozilla’s PDF.js and utilizes Zustand for a reactive store for the loaded documents, making it easier to integrate PDF functionality in these frameworks.

Features:

  • Cross-Framework Compatibility: Works seamlessly with React, SolidJS, Svelte, and Vanilla JavaScript apps.
  • PDF Viewer Component: Provides a PDFSlickViewer component for displaying PDF documents.
  • Reactive Store: Utilizes Zustand to offer a reactive store for managing loaded documents.
  • Easy Integration: Offers hooks like usePDFSlick() for easy integration in components.
  • Customizable Options: Allows for customization through options objects when loading PDF documents.

Installation:

To install PDFSlick for React:

npm install @pdfslick/react

To install PDFSlick for SolidJS:

npm install @pdfslick/solid

To install PDFSlick for Svelte:

npm install @pdfslick/svelte

Summary:

PDFSlick is a versatile library that simplifies the integration of PDF functionality in React, SolidJS, Svelte, and Vanilla JavaScript applications. By providing components like PDFSlickViewer and a reactive store, it offers an easier way to work with PDF documents within these popular frameworks.