react-pdf-builder
Version:
Build beautiful PDF documents in React.
13 lines (12 loc) • 516 B
TypeScript
import * as React from 'react';
import { ElementProps } from 'react-html-props';
import { Theme } from '../../themes/Theme';
export declare const PDFThemeProviderContext: React.Context<Theme>;
export interface PDFThemeProviderProps extends ElementProps {
theme: Theme;
}
/**
* Provider used to specify the theme used by all React PDF Builder components.
*/
export declare function PDFThemeProvider({ children, theme }: PDFThemeProviderProps): JSX.Element;
export declare const usePDFThemeContext: () => Theme;