1.0.5 • Published 6 years ago

react-indeterminate-checkbox v1.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

🌕 🌗 🌑 React Indeterminable Checkbox 🌑 🌗 🌕

License JavaScript Style Guide Dependencies Maintainability

Simple checkbox component with "indeterminate" status support.

Live Demo

Live demo here!

Installation

You can install this package with npm or yarn

npm install react-indeterminate-checkbox
yarn add react-indeterminate-checkbox

Usage

import IndeterminableCheckbox from 'react-indeterminate-checkbox'

const checkBox = () => {

    <IndeterminableCheckbox
       change={val => console.log(val)}
       name="mycheckbox-name"
       indeterminate={true}
    />

}

Props

NameValue
changeReturns 0, 1 or 2. 0: indeterminable 1: checked 2: unchecked
namethe checkbox input name
indeterminateBoolean value, set true if you want to start with an indeterminable status. Set to false if you want it to start with the checked value.
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago