1.0.5 • Published 6 years ago
react-basic-checkbox v1.0.5
react-simple-checkbox
Install
npm install --save react-basic-checkboxyarn add react-basic-checkboxUsage

import React from 'react'
import CheckBox from 'react-simple-checkbox'
function Example(){
return (
<CheckBox callback={(status)=>{console.log(status)}} /> // Log true or false on console
<CheckBox marked={false} width={50} height={60} />
<CheckBox markedColor = {"#153FAE"} borderColor = {"#135EAF"} />
<CheckBox color={"#000000"} />
)
}| props | type |
|---|---|
| marked | Boolean |
| width | Number (px) |
| height | Number (px) |
| callback | Function to return checkbox component marked state |
| markedColor | Background color when checkbox is marked |
| borderColor | Color to checkbox border |
| color | Global color to marked and border |
License
MIT © gu7z