woocommerce/packages/js/components/src/web-preview
Christopher Allford d2d8d78be1 Moved WCA Packages
This commit moves all of the packages in
`plugins/woocommerce-admin/packages` to their
new home in `packages/js`.
2022-03-18 14:25:26 -07:00
..
stories Moved WCA Packages 2022-03-18 14:25:26 -07:00
README.md Moved WCA Packages 2022-03-18 14:25:26 -07:00
index.js Moved WCA Packages 2022-03-18 14:25:26 -07:00
style.scss Moved WCA Packages 2022-03-18 14:25:26 -07:00

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