woocommerce/plugins/woocommerce-admin/packages/components/src/web-preview
Sam Seay fc030fb007 Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271)
Fixes woocommerce/woocommerce-admin#5234
2020-10-15 14:55:55 +13:00
..
stories Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
README.md Fetch component usage documentation from local README.md. 2019-09-06 11:52:18 -07:00
index.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
style.scss Update to Color Studio v2.1.0 (https://github.com/woocommerce/woocommerce-admin/pull/2837) 2019-08-29 12:07:56 -04: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