kodobe-react-textarea
v2.0.0
Published
Kodobe React TextArea
Downloads
2
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)