kodobe-react-checkbox
v2.0.5
Published
Kodobe React Checkbox
Downloads
3
Readme
Kodobe React Checkbox
This is a simple react checkbox package.
Install
npm install kodobe-react-checkbox
or
yarn add kodobe-react-checkbox
Setup
import Checkbox from 'kodobe-react-checkbox';
Usage
import Checkbox from "kodobe-react-checkbox";
function App() {
return (
<div>
<h3>Here is how to use a checkbox</h3>
<Checkbox isChecked={true} onCheck={(t) => console(t.target.value)} />
</div>
);
}
Options
- isChecked : state of the radio (boolean, default=false)
- disabled : if the switch can be toggled (boolean, default=false)
- onCheck : toggles checkbox button (function, required)
- style : (object)
- className : (string)
- id : (any)
- name : (string)