0.3.0 • Published 8 years ago

paper-radio-button v0.3.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
8 years ago

<PaperRadioButton />

Build Status

Install

npm install paper-radio-button

Using the Component

import PaperRadioButton from 'paper-radio-button';

Using the CSS

@import "paper-radio-button";

API

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

Example

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