|
Download wp-calypso/client/my-sites/plugins/plugins-browser-item/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugins-browser-item/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/plugins/plugins-browser-item/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/plugins/plugins-browser-item/README.md
1.16 kB
Plugins Browser Item
This component is used to display small infobox with the data of a plugin.
How to use
import PluginListItem from 'calypso/my-sites/plugins-browser-item';
function render() {
return (
<div>
<PluginListItem key={ slug } plugin={ plugin } isPlaceholder site={ site } />
</div>
);
}
Props
plugin: a plugin object. It defaults to a empty plugin used as placeholdersite: a string containing the slug of the selected site
Other
key: Unique plugin key, this help react render a list better.isPlaceholder: Boolean, it marks if the item is a placeholdericonSize: number with the size of the icon. Defaulted to 40, since all the intertal css are adjusted around that value, it would be better to not change the defaultvariant: the component can be used in compact or extended view. Defaults toCompact.variant displays Compact Icon, Name, Short Description Extended Icon, Name, Author, Short Description, Pricing Info