Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 899 Bytes

File metadata and controls

25 lines (15 loc) · 899 Bytes

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

useHtmlIframeProps() function

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;

Parameters

Parameter Type Description
{ style, tnode } CustomRendererProps<TBlock>
iframeConfig IframeConfig Override config options.

Returns:

HTMLIframeProps