File size: 690 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# Plugin Install Button
This component is used to display a button that launch a install action when clicked.
## How to use
```js
import PluginInstallButton from 'calypso/my-sites/plugins/plugin-install-button';
function render() {
return (
<PluginInstallButton
plugin={ plugin }
selectedSite={ site }
isInstalling={ false }
isEmbed={ false }
/>
);
}
```
## Props
- `plugin`: a plugin object.
- `selectedSite`: a site object.
- `isInstalling`: an optional boolean indicating if there's a install action for this plugin and site already going on.
- `isEmbed`: an optional boolean indicating if the button is going to be rendered embed inside a plugin-site component.
|