|
Download wp-calypso/client/my-sites/plugins/plugin-activate-toggle/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-activate-toggle/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugin-activate-toggle/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-activate-toggle/README.md
564 Bytes
Plugin Activate Toggle
This component is used to display a plugin activation toggle.
How to use
import PluginActivateToggle from 'calypso/my-sites/plugins/plugin-activate-toggle';
function render() {
return (
<div className="your-plugins-list">
<PluginActivateToggle plugin={ plugin } site={ site } notices={ notices } />
</div>
);
}
Props
plugin: a plugin object.site: a site object.notices: a notices object.disabled: a boolean indicating whether the toggle is disabled (grayed out and non interactive) or not