UNPKG

@ronymmoura/react-reports

Version:

【WIP】React components to create reports

34 lines (33 loc) 776 B
import React, { ReactNodeArray } from "react"; import "./Report.css"; export declare enum ReportSize { A3 = "A3", A4 = "A4", A5 = "A5" } export declare enum ReportOrientation { Landscape = "landscape", Portrait = "portrait" } interface Props { size: ReportSize; orientation: ReportOrientation; children: ReactNodeArray; preview: boolean; downloadURL: string; } interface State { downloading: boolean; } export declare class Report extends React.Component<Props, State> { static defaultProps: { size: ReportSize; orientation: ReportOrientation; }; state: { downloading: boolean; }; downloadPDF: () => Promise<void>; render(): JSX.Element; } export {};