0.1.3 • Published 9 years ago

frrb v0.1.3

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

frrb

frrb logo

Build status NPM version js-xo-style

Fat Responsive Radiobutton

Installation

Install frrb using npm:

npm install --save frrb

Demo

See a demo of the component here.

Usage

Module usage

In your React app:

import React from 'react';
import FatResponsiveRadiobutton from 'frrb';

class App extends React.Component {
	render() {
		return <FatResponsiveRadiobutton>Check me</FatResponsiveRadiobutton>;
	}
}

In your Unistyle code:

import fatResponsiveRadiobutton from 'frrb/style';

export default [
	fatResponsiveRadiobutton,
	// your other styles here...
];

API

<FatResponsiveRadiobutton {...props} />

PropTypeDescription
strikedBooleanToggle the alternate style (strike through text when checked)
captionStringRadiobutton 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