Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/ | 03-May-2024 | - | 34 | 14 | ||
demo/ | 03-May-2024 | - | 80 | 62 | ||
test/ | 03-May-2024 | - | 237 | 187 | ||
.bower.json | D | 03-May-2024 | 1.6 KiB | 48 | 48 | |
.gitignore | D | 03-May-2024 | 17 | 2 | 1 | |
.travis.yml | D | 03-May-2024 | 784 | 25 | 24 | |
CONTRIBUTING.md | D | 03-May-2024 | 3.4 KiB | 78 | 39 | |
README.md | D | 03-May-2024 | 2.4 KiB | 57 | 28 | |
bower.json | D | 03-May-2024 | 1.3 KiB | 39 | 38 | |
hero.svg | D | 03-May-2024 | 848 | 23 | 21 | |
index.html | D | 03-May-2024 | 996 | 31 | 14 | |
paper-radio-button.html | D | 03-May-2024 | 8.1 KiB | 248 | 162 |
README.md
1 2<!--- 3 4This README is automatically generated from the comments in these files: 5paper-radio-button.html 6 7Edit those files, and our readme bot will duplicate them over here! 8Edit this file, and the bot will squash your changes :) 9 10The bot does some handling of markdown. Please file a bug if it does the wrong 11thing! https://github.com/PolymerLabs/tedium/issues 12 13--> 14 15[![Build status](https://travis-ci.org/PolymerElements/paper-radio-button.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-radio-button) 16 17_[Demo and API docs](https://elements.polymer-project.org/elements/paper-radio-button)_ 18 19 20##<paper-radio-button> 21 22Material design: [Radio button](https://www.google.com/design/spec/components/selection-controls.html#selection-controls-radio-button) 23 24`paper-radio-button` is a button that can be either checked or unchecked. 25User can tap the radio button to check or uncheck it. 26 27Use a `<paper-radio-group>` to group a set of radio buttons. When radio buttons 28are inside a radio group, exactly one radio button in the group can be checked 29at any time. 30 31Example: 32 33```html 34<paper-radio-button></paper-radio-button> 35<paper-radio-button>Item label</paper-radio-button> 36``` 37 38### Styling 39 40The following custom properties and mixins are available for styling: 41 42| Custom property | Description | Default | 43| --- | --- | --- | 44| `--paper-radio-button-unchecked-background-color` | Radio button background color when the input is not checked | `transparent` | 45| `--paper-radio-button-unchecked-color` | Radio button color when the input is not checked | `--primary-text-color` | 46| `--paper-radio-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--primary-text-color` | 47| `--paper-radio-button-checked-color` | Radio button color when the input is checked | `--primary-color` | 48| `--paper-radio-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--primary-color` | 49| `--paper-radio-button-size` | Size of the radio button | `16px` | 50| `--paper-radio-button-label-color` | Label color | `--primary-text-color` | 51| `--paper-radio-button-label-spacing` | Spacing between the label and the button | `10px` | 52 53This element applies the mixin `--paper-font-common-base` but does not import `paper-styles/typography.html`. 54In order to apply the `Roboto` font to this element, make sure you've imported `paper-styles/typography.html`. 55 56 57