diff --git a/README.md b/README.md
index c2eec0bcb..0918b5193 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,7 @@ import ReactDOM from 'react-dom';
* [Input](#input)
* [LimitedTextarea](#limitedtextarea)
* [LimitedWordTextarea](#limitedwordtextarea)
+* [MultiselectCheckbox](#multiselectcheckbox)
* [PasswordRevealer](#passwordrevealer)
* [Select](#select)
* [TextArea](#textarea)
@@ -379,6 +380,78 @@ ReactDOM.render(
[⬆ Back to top](#table-of-contents)
+### MultiselectCheckbox
+
+Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.
+
+Use `React.setState()` to create a `data` state variable and set its initial value equal to the `options` prop.
+Create a function `toggle` that is used to toggle the `checked` to update the `data` state variable and call the `onChange` callbac passed via the component's props.
+Render a `
` element and use `Array.prototype.map()` to map the `data` state variable to individual `
` elements with `` elements as their children.
+Each `` element has the `type='checkbox'` attribute and is marked as `readOnly`, as its click events are handled by the parent `
+ );
+}
+```
+
+
+Examples
+
+```jsx
+const options = [{ label: "Item One" }, { label: "Item Two" }];
+
+ReactDOM.render(
+ {
+ console.log(data);
+ }}
+ />,
+ document.getElementById("root")
+);
+```
+
+
+ [⬆ Back to top](#table-of-contents)
+
### PasswordRevealer
Renders a password input field with a reveal button.
diff --git a/data/snippet_data.json b/data/snippet_data.json
index 740446b61..dddabbcc1 100644
--- a/data/snippet_data.json
+++ b/data/snippet_data.json
@@ -188,6 +188,22 @@
""
]
},
+ {
+ "name": "MultiselectCheckbox.md",
+ "title": "MultiselectCheckbox",
+ "text": "Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.\n\nUse `React.setState()` to create a `data` state variable and set its initial value equal to the `options` prop.\nCreate a function `toggle` that is used to toggle the `checked` to update the `data` state variable and call the `onChange` callbac passed via the component's props.\nRender a `
` element and use `Array.prototype.map()` to map the `data` state variable to individual `
` elements with `` elements as their children.\nEach `` element has the `type='checkbox'` attribute and is marked as `readOnly`, as its click events are handled by the parent `