Simple React Custom Checkbox and Radio input
Simple custom radio and checkbox input.
Installation
Install react-custom-radio-checkbox
with npm:
$ npm install react-custom-radio-checkbox --save
Quick Start
;;; const options = label: "France" value: "FR" label: "China" value: "CN" label: "New Zealand" value: "NZ" label: "Ukraine" value: "UA" ;const radioChange = { console;};const checkboxChange = { console;};const App = <div> options <div> <CustomCheckbox label="Remember Me" onChange=checkboxChange /> </div> </div>; ReactDOM;
Demo
Props
Name | Type | Description |
---|---|---|
name |
String |
Name of input. |
label |
String |
Label for input. |
value |
String |
Value for input. |
className |
String |
Classname for input. |
disabled |
boolean |
Disabled the input. |
style |
Function |
Inline style for the input. |
onChange |
Function |
The method to call when a page is clicked. |