paper-radio-button
v0.3.0
Published
Paper Radio Button component
Downloads
10
Maintainers
Readme
<PaperRadioButton />
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>