0.3.0 • Published 9 years ago
paper-radio-button v0.3.0
<PaperRadioButton />
Install
npm install paper-radio-buttonUsing 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>