1.0.5 • Published 4 years ago

react-basic-checkbox v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

react-simple-checkbox

NPM JavaScript Style Guide

Install

npm install --save react-basic-checkbox
yarn add react-basic-checkbox

Usage

CheckBox

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"} />
  )
}
propstype
markedBoolean
widthNumber (px)
heightNumber (px)
callbackFunction to return checkbox component marked state
markedColorBackground color when checkbox is marked
borderColorColor to checkbox border
colorGlobal color to marked and border

License

MIT © gu7z