Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
# 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.