0.1.2 • Published 9 years ago

frcb v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

frcb

frcb logo

NPM version js-xo-style

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} />

PropTypeDescription
strikedBooleanToggle the alternate style (strike through text when checked)
captionStringCheckbox label text. Can also be specified as children
...MixedAll other props are passed on to the internal <input> see Forms for examples

License

MIT © Joakim Carlstein