🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

rc-hoho-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-hoho-checkbox

React Component Checkbox for web

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

rc-hoho-checkbox

React Checkbox Component (web)

react node version npm download

Screenshots

Usage

npm install rc-hoho-checkbox
import Checkbox from 'rc-hoho-checkbox';


constructor (props) {
  super(props)
  this.state = {
    check1: true,
    check2: true,
    check3: false,
    check4: true,
  }
}

handleCheck1 = (e) => {
  this.setState({
    check1: e.target.checked,
  })
}

<Checkbox onChange={this.handleCheck1} disabled={true} checked={check1} />
<Checkbox checked={check2}>hansin</Checkbox>
<Checkbox checked={check3} disabled={true} />
<Checkbox checked={check4} disabled={true} />

see example

Development

npm i
npm start

Example

http://localhost:8000/examples/

install

npm download

API

checkbox props

namedescriptiontypedefault
checkeddefault valueboolean
disableddisabledboolean{}
onChangecallbackfunction
classNameclassNameString''

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rc-hoho-checkbox is released under the MIT license.

Keywords

react

FAQs

Package last updated on 27 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts