Home > @native-html/iframe-plugin > useHtmlIframeProps
Extract props for the HTMLIframe component from renderer function arguments. This function is especially usefull for custom iframe renderers.
Signature:
export default function useHtmlIframeProps({ style, tnode }: CustomRendererProps<TBlock>, iframeConfig?: IframeConfig): HTMLIframeProps;| Parameter | Type | Description |
|---|---|---|
| { style, tnode } | CustomRendererProps<TBlock> | |
| iframeConfig | IframeConfig | Override config options. |
Returns: