Installations
npm install @polymer/paper-icon-button
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
11.6.0
NPM Version
6.5.0
Statistics
42 Stars
281 Commits
44 Forks
15 Watching
18 Branches
42 Contributors
Updated on 10 Jan 2024
Languages
JavaScript (60.22%)
HTML (39.78%)
Total Downloads
Cumulative downloads
Total Downloads
3,437,013
Last day
17.9%
2,697
Compared to previous day
Last week
12.2%
15,001
Compared to previous week
Last month
20.1%
61,073
Compared to previous month
Last year
-1.9%
638,012
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
<paper-icon-button>
paper-icon-button
is a button with an image placed at the center. When the user touches
the button, a ripple effect emanates from the center of the button.
paper-icon-button
does not include a default icon set. To use icons from the default
set, include @polymer/iron-icons/iron-icons.js
, and use the icon
attribute to specify which icon
from the icon set to use.
See: Documentation, Demo.
Usage
Installation
npm install --save @polymer/paper-icon-button
In an html file
1<html> 2 <head> 3 <script type="module"> 4 import '@polymer/paper-icon-button/paper-icon-button.js'; 5 import '@polymer/iron-icons/iron-icons.js'; 6 </script> 7 </head> 8 <body> 9 <paper-icon-button icon="favorite"></paper-icon-button> 10 </body> 11</html>
In a Polymer 3 element
1import {PolymerElement, html} from '@polymer/polymer'; 2import '@polymer/paper-icon-button/paper-icon-button.js'; 3import '@polymer/iron-icons/iron-icons.js'; 4 5class SampleElement extends PolymerElement { 6 static get template() { 7 return html` 8 <paper-icon-button icon="favorite"></paper-icon-button> 9 `; 10 } 11} 12customElements.define('sample-element', SampleElement);
Contributing
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
Installation
1git clone https://github.com/PolymerElements/paper-icon-button 2cd paper-icon-button 3npm install 4npm install -g polymer-cli
Running the demo locally
1polymer serve --npm 2open http://127.0.0.1:<port>/demo/
Running the tests
1polymer test --npm
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 5/28 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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 8 are checked with a SAST tool
Reason
29 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m / GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-wvhm-4hhf-97x9
- Warn: Project is vulnerable to: GHSA-h4hr-7fg3-h35w
- Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg
- Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96
- Warn: Project is vulnerable to: GHSA-3949-f494-cm99
- Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp
- Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr
Score
1.6
/10
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