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 `