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-navbartangy-custom-formtangy-formtest-pk-ecqm-gridwise-shopping-cartwysiwyg-e-forkwysiwyg-e-nofontvowo-submenu-dialog@cwmr/paper-autocomplete@cwmr/paper-password-input@cwmr/paper-search@doubletrade/lit-datatable@doubletrade/lit-datepicker@doubletrade/lit-dialog@doubletrade/paper-datatable-api@doubletrade/range-datepicker@rpapeters/paper-autocompletestencil-web-elements@anviltech/wuf-poly-paper-elements@aspen-elements/aspen-nav@aspen-elements/paper-chip@aspen-elements/aspen-link-editor@advanced-rest-client/websocket-data-view@advanced-rest-client/rest-api-menu@advanced-rest-client/project-requests-list@advanced-rest-client/projects-menu@adzadzadz/paper-autocomplete@advanced-rest-client/arc-data-settings-panel@advanced-rest-client/arc-request-settings-panel@advanced-rest-client/paper-combobox@advanced-rest-client/paper-masked-input@casper2020/casper-moac@cargowebserver/cargowebcomponents@casper2020/casper-wizard@brightspace-ui-labs/fullscreen-api@chronos/b7-gallery@01ht/ht-account-settings@01ht/ht-elements-cart@01ht/ht-elements-cart-modal@01ht/ht-elements-catalog@01ht/ht-elements-item@01ht/ht-image-slider@01ht/ht-item-editor@01ht/ht-toolbar-apps-button@01ht/ht-toolbar-cart@01ht/ht-toolbar-menu-button@01ht/ht-toolbar-signinunity-core-beta@feezal/feezal-element-app-layout@feezal/feezal-element-paper-app-layout@edirect/app-datepicker@flowingcode/fc-applayout@hatiolab/things-shell@heyokaysaturday/test-components@hydrofoil/hydrofoil-paper-shell@iconica/iconicaelements@firefly-elements/firefly-tags@fluidnext-polymer/paper-autocomplete@fluidnext-polymer/paper-input-color@fluidnext-polymer/paper-input-file@fluidnext-polymer/paper-pagination@elifent/paper-datepicker@fw-components/fw-dnd@fw-components/fw-avatar@logo-elements/pagination@lrnwebcomponents/lrndesign-audio-player@lrnwebcomponents/lrndesign-contentsequencer@lrnwebcomponents/lrnapp-book@lucentray/pine-web-components@lrnwebcomponents/eco-json-schema-form@lrnwebcomponents/iron-data-table@lrnwebcomponents/app-datepicker@lrnwebcomponents/contenta-polymer@longlost/app-file-system@longlost/app-header-overlay@longlost/app-inputs@longlost/app-map@longlost/app-overlays@longlost/app-shell@longlost/badged-icon-button@longlost/app-camera@longlost/app-carousel@longlost/app-carousels@longlost/app-checkout@longlost/app-ecomm@longlost/cart-icon@longlost/checkout-pay@longlost/cms-events@longlost/drag-drop-files@longlost/examples@longlost/ezf-shared@longlost/fancy-header-example
3.0.2

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

3.0.0-pre.26

7 years ago

3.0.0-pre.25

7 years ago

3.0.0-pre.24

7 years ago

3.0.0-pre.23

7 years ago

3.0.0-pre.22

7 years ago

3.0.0-pre.21

7 years ago

3.0.0-pre.20

7 years ago

3.0.0-pre.19

7 years ago

3.0.0-pre.18

7 years ago

3.0.0-pre.17

7 years ago

3.0.0-pre.16

7 years ago

3.0.0-pre.15

7 years ago

3.0.0-pre.14

7 years ago

3.0.0-pre.13

7 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

8 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