|
Download wp-calypso/client/my-sites/plugins/plugin-install-button/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-install-button/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugin-install-button/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-install-button/README.md
690 Bytes
Plugin Install Button
This component is used to display a button that launch a install action when clicked.
How to use
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.