react-checkbox2

1.0.10 • Public • Published

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>

Package Sidebar

Install

npm i react-checkbox2

Weekly Downloads

0

Version

1.0.10

License

ISC

Last publish

Collaborators

  • johndotawesome