|
Download wp-calypso/client/my-sites/plugins/plugin-icon/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-icon/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugin-icon/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugin-icon/README.md
529 Bytes
Plugin Icon
This component is used to display the icon for a plugin. It takes a plugin image as a prop.
How to use
import PluginIcon from 'calypso/my-sites/plugins/plugin-icon/plugin-icon';
function render() {
return (
<div className="your-stuff">
<PluginIcon image={ plugin.icon } />
</div>
);
}
Props
image(string) - an image source.isPlaceholder(bool) -trueto display as a placeholder.className(string) - A string that adds additional class names to this component.