Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.33 KB

iframe-plugin.iframeconfig.md

File metadata and controls

23 lines (15 loc) · 1.33 KB

Home > @native-html/iframe-plugin > IframeConfig

IframeConfig interface

Configuration options for the HTMLIframe component. You can pass those options through renderersProps.iframe HTML prop.

Signature:

export interface IframeConfig 

Properties

Property Type Description
injectedCSSStyles? string (Optional) When defined, the provided CSS will be injected in a style element.
removeBodySpacing? boolean (Optional) When true, a stylesheet will be inserted in the WebView to remove padding and margins for the body element.
scalesPageToFit? boolean (Optional) When the iframe attribute width is wider than the contentWidth, scales down the viewport so that it doesn't overflows horizontally.
webViewProps? any (Optional) Any props you'd like to pass to the WebView component.