1.1.0 • Published 7 years ago

react-smart-checkbox v1.1.0

Weekly downloads
14
License
-
Repository
github
Last release
7 years ago

react-smart-checkbox

npm version

Installation:

  • npm
npm i -P react-smart-checkbox
  • yarn
yarn add react-smart-checkbox

How to use:

  • import component
import ReactSmartCheckbox from 'react-smart-checkbox'
  • use component
<ReactSmartCheckbox
  name='fruits'
  options={['orange', 'apple', 'banana']}
/>

Read more below about component's additional attributes

attributetyperequired
namestringtrue
optionsarraytrue
initialValuesarrayfalse
onChangefuncfalse
  • initialValues should pass array to check any child(s) on componentWillMount hook triggers
  • onChange is callback function and returns checked childrens array
1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago