frcb

Fat Responsive Checkbox
Installation
Install frcb using npm:
npm install --save frcb
Demo
See a demo of the component here.
Usage
Module usage
In your React app:
import React from 'react';
import FatResponsiveCheckbox from 'frcb';
class App extends React.Component {
render() {
return <FatResponsiveCheckbox>Check me</FatResponsiveCheckbox>;
}
}
In your Unistyle code:
import fatResponsiveCheckbox from 'frcb/style';
export default [
fatResponsiveCheckbox,
// your other styles here...
];
API
<FatResponsiveCheckbox {...props} />
| Prop | Type | Description |
|---|---|---|
| striked | Boolean |
Toggle the alternate style (strike through text when checked) |
| caption | String |
Checkbox label text. Can also be specified as children |
| ... | Mixed |
All other props are passed on to the internal <input> see Forms for examples |
License
MIT Joakim Carlstein