Gathering detailed insights and metrics for @polymer/paper-radio-group
Gathering detailed insights and metrics for @polymer/paper-radio-group
Gathering detailed insights and metrics for @polymer/paper-radio-group
Gathering detailed insights and metrics for @polymer/paper-radio-group
npm install @polymer/paper-radio-group
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
19 Stars
217 Commits
29 Forks
16 Watching
12 Branches
39 Contributors
Updated on 29 Apr 2022
HTML (67.65%)
JavaScript (32.35%)
Cumulative downloads
Total Downloads
Last day
28.8%
1,106
Compared to previous day
Last week
19.2%
6,511
Compared to previous week
Last month
37.6%
25,630
Compared to previous month
Last year
-4.5%
217,311
Compared to previous year
<paper-radio-group>
allows user to select at most one radio button from a set.
Checking one radio button that belongs to a radio group unchecks any previously
checked radio button within the same group. Use selected
to get or set the
selected radio button.
The <paper-radio-button>
elements inside the group must have the name
attribute set.
See: Documentation, Demo.
npm install --save @polymer/paper-radio-group
1<html> 2 <head> 3 <script type="module"> 4 import '@polymer/paper-radio-button/paper-radio-button.js'; 5 import '@polymer/paper-radio-group/paper-radio-group.js'; 6 </script> 7 </head> 8 <body> 9 <paper-radio-group selected="small"> 10 <paper-radio-button name="small">Small</paper-radio-button> 11 <paper-radio-button name="medium">Medium</paper-radio-button> 12 <paper-radio-button name="large">Large</paper-radio-button> 13 </paper-radio-group> 14 </body> 15</html>
1import {PolymerElement} from '@polymer/polymer/polymer-element.js'; 2import {html} from '@polymer/polymer/lib/utils/html-tag.js'; 3 4import '@polymer/paper-radio-button/paper-radio-button.js'; 5import '@polymer/paper-radio-group/paper-radio-group.js'; 6 7class ExampleElement extends PolymerElement { 8 static get template() { 9 return html` 10 <paper-radio-group selected="small"> 11 <paper-radio-button name="small">Small</paper-radio-button> 12 <paper-radio-button name="medium">Medium</paper-radio-button> 13 <paper-radio-button name="large">Large</paper-radio-button> 14 </paper-radio-group> 15 `; 16 } 17} 18 19customElements.define('example-element', ExampleElement);
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
1git clone https://github.com/PolymerElements/paper-radio-group 2cd paper-radio-group 3npm install 4npm install -g polymer-cli
1polymer serve --npm 2open http://127.0.0.1:<port>/demo/
1polymer test --npm
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/25 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More