3.0.2 • Published 6 years ago

@polymer/paper-icon-button v3.0.2

Weekly downloads
13,320
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Published on NPM Build status Published on webcomponents.org

<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

<html>
  <head>
    <script type="module">
      import '@polymer/paper-icon-button/paper-icon-button.js';
      import '@polymer/iron-icons/iron-icons.js';
    </script>
  </head>
  <body>
    <paper-icon-button icon="favorite"></paper-icon-button>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-icon-button/paper-icon-button.js';
import '@polymer/iron-icons/iron-icons.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-icon-button icon="favorite"></paper-icon-button>
    `;
  }
}
customElements.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

git clone https://github.com/PolymerElements/paper-icon-button
cd paper-icon-button
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm
fundwave-fund-management@navigateconsulting/eva-botf6c-image-sliderzagen-zagen@teipublisher/pb-components7simple-material-table@infinitebrahmanuniverse/nolb-_pol@everything-registry/sub-chunk-731@boluabraham/fhir-navbarcrca-lit-datepickeretools-content-paneletools-modules-commonetools-tablefhir-navbarecqm-add-measureecqm-gridecosis-client-commonsglobular-mvcglobular_admindr-niels-paper-expansion-panelhh-player-newhh-player-new.jsintervention-pagesin-app-searchpolymer-starter-kit-publish-demopolymer-starter-kitpolymer-toggle-iconpaper-autocompletepaper-chippaper-collapse-itempk-ecqm-headerpk-ecqm-loginpk-bonnie-testmeasureplastic-map-info@edirect/app-datepicker@elifent/paper-datepicker@doubletrade/lit-datatable@doubletrade/lit-datepicker@doubletrade/lit-dialog@doubletrade/paper-datatable-api@doubletrade/range-datepickerlive-localizerlit-paginationmicro-fabric-uxmaterial-components-elm-js-importssdl-hello-vueskeleton-carouselskyeditorstencil-web-elementstangy-formtangy-custom-formtest-pk-ecqm-gridmonster-creatornodecgnodecg-twitchie-graphicsoe-side-navoe-date-rangeoe-hierarchy-componentoe-inputoe-toggleoe-ui-miscoe-workflow-ui-componentsremix-file-uploadunity-core-betavowo-submenu-dialogwysiwyg-e-forkwysiwyg-e-nofontwise-shopping-cart@unicef-polymer/etools-content-panel@unicef-polymer/etools-data-table@unicef-polymer/etools-date-time@unicef-polymer/etools-dialog@unicef-polymer/etools-profile-dropdown@unicef-polymer/etools-dropdown@unicef-polymer/etools-filters@rammbulanz/lit-app-layout@uxland/uxl-tile-view@uxland/uxl-interaction@smyd/app-checkout@smyd/app-imgs@smyd/app-overlays@smyd/app-pay@smyd/app-shell@smyd/asg-search@smyd/asg-shop-card-details@smyd/asg-shop-card-item@smyd/cart-icon@smyd/checkout-pay@smyd/cms-elements@smyd/cms-events@smyd/dhg-elements@ucd-lib/cork-pagination@uxland/uxl-login@polymer/iron-component-page@sibley/myuw-app-bar@silverlinkz/sl-gallery@sdl-web/sdl-hello-vue@things-factory/scene-chartjs@things-factory/process-modeller@things-real/shell
3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

3.0.0-pre.26

6 years ago

3.0.0-pre.25

6 years ago

3.0.0-pre.24

6 years ago

3.0.0-pre.23

6 years ago

3.0.0-pre.22

6 years ago

3.0.0-pre.21

6 years ago

3.0.0-pre.20

6 years ago

3.0.0-pre.19

6 years ago

3.0.0-pre.18

6 years ago

3.0.0-pre.17

6 years ago

3.0.0-pre.16

6 years ago

3.0.0-pre.15

6 years ago

3.0.0-pre.14

6 years ago

3.0.0-pre.13

6 years ago

3.0.0-pre.12

7 years ago

3.0.0-pre.11

7 years ago

3.0.0-pre.10

7 years ago

3.0.0-pre.8

7 years ago

3.0.0-pre.7

7 years ago

3.0.0-pre.6

7 years ago

3.0.0-pre.4

7 years ago

3.0.0-pre.3

7 years ago

3.0.0-pre.2

7 years ago

3.0.0-pre.1

7 years ago

1.1.4-pre.3

8 years ago

1.1.4-pre.2

8 years ago

1.1.4-pre.1

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.1

9 years ago