Back to Woocommerce

Plugins

packages/js/components/src/plugins/README.md

10.8.0-dev1.3 KB
Original Source

Plugins

Use Plugins to install and activate a list of plugins.

Usage

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

Props

NameTypeDefaultDescription
onCompleteFunctionCalled when the plugin installer is completed
onErrorFunctionCalled when the plugin installer completes with an error
onSkipFunctionnoopCalled when the plugin installer is skipped
skipTextStringText used for the skip installer button
autoInstallBooleanfalseIf installation should happen automatically, or require user confirmation
pluginSlugsArray[ 'jetpack', 'woocommerce-services' ],An array of plugin slugs to install.