Home > @native-html/iframe-plugin > IframeConfig
Configuration options for the HTMLIframe component. You can pass those options through renderersProps.iframe HTML prop.
Signature:
export interface IframeConfig | 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. |