File size: 627 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
# Plugin Autoupdate Toggle

This component is used to display a plugin autupdate toggle.

## How to use

```js
import PluginAutoupdateToggle from 'calypso/my-sites/plugins/plugin-autoupdate-toggle';

function render() {
	return (
		<div className="your-plugins-list">
			<PluginAutoupdateToggle plugin={ plugin } site={ site } notices={ notices } wporg />
		</div>
	);
}
```

## Props

- `plugin`: a plugin object.
- `site`: a site object.
- `notices`: a notices object.
- `wporg`: whether the plugin is from .org or not
- `disabled`: a boolean indicating whether the toggle is disabled (grayed out and non interactive) or not