2.0.0 • Published 3 years ago

kodobe-react-textarea v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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)