@wordpress/components
Version:
UI components for WordPress.
19 lines • 540 B
TypeScript
/// <reference types="react" />
/**
* Internal dependencies
*/
import type { SandBoxProps } from './types';
/**
* This component provides an isolated environment for arbitrary HTML via iframes.
*
* ```jsx
* import { SandBox } from '@wordpress/components';
*
* const MySandBox = () => (
* <SandBox html="<p>Content</p>" title="SandBox" type="embed" />
* );
* ```
*/
declare function SandBox({ html, title, type, styles, scripts, onFocus, }: SandBoxProps): JSX.Element;
export default SandBox;
//# sourceMappingURL=index.d.ts.map