2.0.0 • Published 7 years ago

@npm-polymer/paper-radio-button v2.0.0

Weekly downloads
2
License
http://polymer.gi...
Repository
github
Last release
7 years ago

Build status

Demo and API docs

<paper-radio-button>

Material design: Radio button

paper-radio-button is a button that can be either checked or unchecked. User can tap the radio button to check or uncheck it.

Use a <paper-radio-group> to group a set of radio buttons. When radio buttons are inside a radio group, exactly one radio button in the group can be checked at any time.

Example:

<paper-radio-button></paper-radio-button>
<paper-radio-button>Item label</paper-radio-button>

Styling

The following custom properties and mixins are available for styling:

Custom propertyDescriptionDefault
--paper-radio-button-unchecked-background-colorRadio button background color when the input is not checkedtransparent
--paper-radio-button-unchecked-colorRadio button color when the input is not checked--primary-text-color
--paper-radio-button-unchecked-ink-colorSelected/focus ripple color when the input is not checked--primary-text-color
--paper-radio-button-checked-colorRadio button color when the input is checked--primary-color
--paper-radio-button-checked-ink-colorSelected/focus ripple color when the input is checked--primary-color
--paper-radio-button-sizeSize of the radio button16px
--paper-radio-button-label-colorLabel color--primary-text-color
--paper-radio-button-label-spacingSpacing between the label and the button10px

This element applies the mixin --paper-font-common-base but does not import paper-styles/typography.html. In order to apply the Roboto font to this element, make sure you've imported paper-styles/typography.html.