woocommerce/plugins/woocommerce-admin/packages/components/src/image-upload
Chi-Hsuan Huang f052c3fed1 Replace deprecated wp.compose.withState with wp.element.useState (https://github.com/woocommerce/woocommerce-admin/pull/8338)
* Update search-list-control

* Update tag

* Update stories

* Add packages/components changelog
2022-02-23 09:35:50 +08:00
..
stories Replace deprecated wp.compose.withState with wp.element.useState (https://github.com/woocommerce/woocommerce-admin/pull/8338) 2022-02-23 09:35:50 +08:00
test Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
README.md Remove Newspack Dependency (https://github.com/woocommerce/woocommerce-admin/pull/3302) 2019-12-02 12:39:22 -05:00
index.js Allow packages to be built in isolation. (https://github.com/woocommerce/woocommerce-admin/pull/7286) 2021-07-14 16:38:57 -04:00
style.scss Fix Task List styles (https://github.com/woocommerce/woocommerce-admin/pull/4573) 2020-06-16 14:07:06 +12:00

README.md

ImageUpload

ImageUpload - Adds an upload area for selecting or uploading an image from the WordPress media gallery.

Usage

	<ImageUpload image={ image } onChange={ newImage => setState( { url: newImage } ) } />

Props

Name Type Default Description
image Object null Image information containing media gallery id and image url
onChange Function null Function to trigger when the selected image changes
className String null Additional class name to style the component