d2d8d78be1
This commit moves all of the packages in `plugins/woocommerce-admin/packages` to their new home in `packages/js`. |
||
---|---|---|
.. | ||
stories | ||
README.md | ||
index.js | ||
style.scss |
README.md
WebPreview
WebPreview component to display an iframe of another page.
Usage
<WebPreview
title="My Web Preview"
src="https://themes.woocommerce.com/?name=galleria"
/>
Props
Name | Type | Default | Description |
---|---|---|---|
className |
String | null |
Additional class name to style the component |
loadingContent |
ReactNode | <Spinner /> |
Content shown when iframe is still loading |
onLoad |
Function | noop |
Function to fire when iframe content is loaded |
src |
String | null |
(required) Iframe src to load |
title |
String | null |
(required) Iframe title |