@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
23 lines (22 loc) • 946 B
TypeScript
import React from "react";
import { TestableComponent } from "../interfaces";
export interface IframeProps extends TestableComponent {
className?: string;
title: string;
src: string;
useViewportHeight?: "quarter" | "third" | "half" | "full";
useAvailableSpace?: boolean;
/**
* Use height calculated from iframe content.
* Currently this only works when the iframe content is not changed after the onLoad event by lazy loading, etc.
* It also takes not height changes into account that are based on resized viewport
*/
useContentHeight?: boolean;
backgroundColor?: string;
htmlIframeProps?: Omit<React.IframeHTMLAttributes<HTMLIFrameElement>, "title" | "className" | "src">;
}
/**
* Display iframe but shows a spinner as long as it is not loaded.
*/
export declare const Iframe: React.ForwardRefExoticComponent<IframeProps & React.RefAttributes<HTMLIFrameElement>>;
export default Iframe;