react-checkbox2

Stateless and easily stylable checkbox component for react

Usage no npm install needed!

<script type="module">
  import reactCheckbox2 from 'https://cdn.skypack.dev/react-checkbox2';
</script>

README

React Checkbox

Stateless and easily stylable checkbox component for react

install

npm install -S react-checkbox2

usage

<Checkbox
  checked={this.state.shouldBeChecked}
  value={myCustomValue}
  onChange={this.onChange}
/>

{/* or */}
{/* add cutom markup */}
<Checkbox
  checked={this.state.shouldBeChecked}
  value={myCustomValue}
  onChange={this.onChange}
>
  <div class="some-custom-text">Select Me!</div>
</Checkbox>