Usage
import { SandBox } from '@wordpress/components'; const MySandBox = () => ( <SandBox html="<p>Content</p>" title="SandBox" type="embed" /> );
Props
html: string
-
Required: No -
Default: “”
onFocus: React.DOMAttributes< HTMLIFrameElement >[ ‘onFocus’ ]
-
Required: No
scripts: string[]
-
Required: No -
Default: []
styles: string[]
-
Required: No -
Default: []
title: string
-
Required: No -
Default: “”
type: string
-
Required: No -
Default: “”
tabIndex: HTMLElement[ ‘tabIndex’ ]
-
Required: No