Skip to content

shavidzet/react-smart-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2c27470 · Sep 11, 2018

History

17 Commits
Jul 18, 2017
Sep 10, 2018
Jul 19, 2017
Jul 18, 2017
Jul 18, 2017
Jul 18, 2017
Jul 19, 2017
Jul 19, 2017
Jul 18, 2017
Jul 18, 2017
Oct 8, 2017
Jul 18, 2017
Jul 19, 2017
Oct 8, 2017
Jul 18, 2017
Jul 18, 2017
Jul 19, 2017

Repository files navigation

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 ↓

attribute type required
name string true
options array true
initialValues array false
onChange func false
  • initialValues should pass array to check any child(s) on componentWillMount hook triggers
  • onChange is callback function and returns checked childrens array