UNPKG

react-pdf-flipbook-viewer

Version:

A customizable React component to render PDF documents in a flipbook-style viewer — perfect for brochures, magazines, and interactive documents. ## Features

18 lines (17 loc) 547 B
import { Dispatch, SetStateAction } from 'react'; import React from 'react'; import { PDFDetails } from '../../../lib/definitions'; type FlipbookProps = { viewerStates: { currentPageIndex: number; zoomScale: number; }; setViewerStates: Dispatch<SetStateAction<{ currentPageIndex: number; zoomScale: number; }>>; screenfull: any; pdfDetails: PDFDetails; }; declare const Flipbook: React.ForwardRefExoticComponent<FlipbookProps & React.RefAttributes<HTMLDivElement>>; export default Flipbook;