UNPKG

@chalkbooks/react-doc-viewer

Version:
20 lines (19 loc) 762 B
import React, { CSSProperties } from "react"; import { AvailableLanguages } from "./i18n"; import { DocRenderer, DocViewerRef, IConfig, IDocument, ITheme } from "./models"; export interface DocViewerProps { documents: IDocument[]; className?: string; style?: CSSProperties; config?: IConfig; theme?: ITheme; pluginRenderers?: DocRenderer[]; prefetchMethod?: string; requestHeaders?: Record<string, string>; initialActiveDocument?: IDocument; language?: AvailableLanguages; activeDocument?: IDocument; onDocumentChange?: (document: IDocument) => void; } declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<DocViewerProps & React.RefAttributes<DocViewerRef>>>; export default _default;