diff --git a/docs/pages/api/checkbox.md b/docs/pages/api/checkbox.md
index 4ffe427ad4be27..40c85aa0b2c45c 100644
--- a/docs/pages/api/checkbox.md
+++ b/docs/pages/api/checkbox.md
@@ -38,6 +38,7 @@ You can learn more about the difference by [reading this guide](/guides/minimizi
| inputRef | ref | | Pass a ref to the `input` element. |
| onChange | func | | Callback fired when the state is changed.
**Signature:**
`function(event: object) => void`
*event:* The event source of the callback. You can pull out the new checked state by accessing `event.target.checked` (boolean). |
| required | bool | | If `true`, the `input` element will be required. |
+| size | 'small'
| 'medium' | 'medium' | The size of the checkbox. `small` is equivalent to the dense checkbox styling. |
| type | string | | The input component prop `type`. |
| value | any | | The value of the component. The DOM API casts this to a string. |
diff --git a/docs/src/pages/components/checkboxes/Checkboxes.js b/docs/src/pages/components/checkboxes/Checkboxes.js
index 96fe42731ef4f6..b7a6e4131526a2 100644
--- a/docs/src/pages/components/checkboxes/Checkboxes.js
+++ b/docs/src/pages/components/checkboxes/Checkboxes.js
@@ -2,72 +2,51 @@ import React from 'react';
import Checkbox from '@material-ui/core/Checkbox';
export default function Checkboxes() {
- const [state, setState] = React.useState({
- checkedA: true,
- checkedB: true,
- checkedF: true,
- });
+ const [checked, setChecked] = React.useState(true);
- const handleChange = name => event => {
- setState({ ...state, [name]: event.target.checked });
+ const handleChange = event => {
+ setChecked(event.target.checked);
};
return (