woocommerce/packages/js/components/src/plugins
Joshua T Flowers 3fd736c72f
Update plugins installer component to TS, Fix TS bugs and Syncpack TypeScript (#34787)
2022-09-30 10:59:07 +13:00
..
test Update plugins installer component to TS, Fix TS bugs and Syncpack TypeScript (#34787) 2022-09-30 10:59:07 +13:00
README.md Moved WCA Packages 2022-03-18 14:25:26 -07:00
index.tsx Update plugins installer component to TS, Fix TS bugs and Syncpack TypeScript (#34787) 2022-09-30 10:59:07 +13:00

README.md

Plugins

Use Plugins to install and activate a list of plugins.

Usage

<Plugins
	onComplete={ this.complete }
	pluginSlugs={ [ 'jetpack', 'woocommerce-services' ] }
/>

Props

Name Type Default Description
onComplete Function Called when the plugin installer is completed
onError Function Called when the plugin installer completes with an error
onSkip Function noop Called when the plugin installer is skipped
skipText String Text used for the skip installer button
autoInstall Boolean false If installation should happen automatically, or require user confirmation
pluginSlugs Array [ 'jetpack', 'woocommerce-services' ], An array of plugin slugs to install.