UNPKG

@react-pdf-viewer/properties

Version:

A React component to view a PDF document

36 lines (28 loc) 942 B
/** * A React component to view a PDF document * * @see https://react-pdf-viewer.dev * @license https://react-pdf-viewer.dev/license * @copyright 2019-2023 Nguyen Huu Phuoc <me@phuoc.ng> */ import type { Plugin } from '@react-pdf-viewer/core'; import * as React from 'react'; // Types export interface ShowPropertiesMenuItemProps { onClick: () => void; } export interface ShowPropertiesProps { children?: (props: RenderShowPropertiesProps) => React.ReactElement; } export interface RenderShowPropertiesProps { onClick(): void; } // Plugin export interface PropertiesPlugin extends Plugin { ShowProperties: (props: ShowPropertiesProps) => React.ReactElement; ShowPropertiesButton(): React.ReactElement; ShowPropertiesMenuItem: (props: ShowPropertiesMenuItemProps) => React.ReactElement; } export function propertiesPlugin(): PropertiesPlugin; // Components export class InfoIcon extends React.Component {}