File size: 753 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Plugins List
This component is used to represent a list `PluginItem`s using the DataViews component.
## How to use
```jsx
import PluginsList from 'calypso/my-sites/plugins/plugins-list';
<PluginsList
header={ this.props.translate( 'Plugins' ) }
plugins={ this.getPlugins() }
sites={ this.props.sites }
selectedSite={ this.props.selectedSite }
isPlaceholder={ this.showPluginListPlaceholders( true ) }
/>;
```
## Props
- `plugins`: An array of plugins objects.
- `header`: A string describing the plugin list.
- `sites`: An object describing the sites list object.
- `selectedSite`: An object or false of the single site.
- `pluginUpdateCount`: Number of plugin updates that need to happen.
- `isPlaceholder`: Weather to show a placeholder.
|