0.10.0 • Published 9 years ago

paper-checkbox v0.10.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
9 years ago

<PaperCheckbox />

Build Status

Install

npm install paper-checkbox

Using the Component

import PaperCheckbox from 'paper-checkbox';

Using the CSS

@import "/path/to/node_modules/paper-checkbox/dist/paper-checkbox.css";

API

  • checked: Boolean: Optional. Determines whether the checkbox is displayed as checked or unchecked.
  • children: Any: Optional. Used as a label for the checkbox.
  • disabled: Boolean: Optional. Determines whether the checkbox is disabled.
  • id: String: Required if using a label, optional otherwise.
  • onClick: Function: Optional. Called when the <PaperCheckbox> component is clicked.
  • theme: String: Optional. Accepts 'light' to add a light theme. Default theme is dark.

Example

<PaperCheckbox
  id='123'
  checked={this.state.clicked}
  onClick={() => this.setState({ clicked: !this.state.clicked })}
>
  Checkmate
</PaperCheckbox>
0.10.0

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago