UNPKG

568 BTypeScriptView Raw
1import { Component } from 'react';
2interface IFrameProps {
3 id: string;
4 key?: string;
5 title: string;
6 src: string;
7 allowFullScreen: boolean;
8 scale: number;
9 style?: any;
10}
11interface BodyStyle {
12 width: string;
13 height: string;
14 transform: string;
15 transformOrigin: string;
16}
17export declare class IFrame extends Component<IFrameProps> {
18 iframe: any;
19 componentDidMount(): void;
20 shouldComponentUpdate(nextProps: IFrameProps): boolean;
21 setIframeBodyStyle(style: BodyStyle): any;
22 render(): JSX.Element;
23}
24export {};