frcb

0.1.2 • Public • Published

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

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

/frcb/

    Package Sidebar

    Install

    npm i frcb

    Weekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • joakimbeng