3.0.1 • Published 6 years ago

@polymer/paper-button v3.0.1

Weekly downloads
11,276
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Published on NPM Build status Published on webcomponents.org

<paper-button>

Material design: Buttons

paper-button is a button. When the user touches the button, a ripple effect emanates from the point of contact. It may be flat or raised. A raised button is styled with a shadow.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-button

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-button/paper-button.js';
    </script>
  </head>
  <body>
    <paper-button class="pink">link</paper-button>
    <paper-button raised class="indigo">raised</paper-button>
    <paper-button toggles raised class="green">toggles</paper-button>
    <paper-button disabled class="disabled">disabled</paper-button>
  </body>
</html>

In a Polymer 3 element

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

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-button class="pink">link</paper-button>
      <paper-button raised class="indigo">raised</paper-button>
      <paper-button toggles raised class="green">toggles</paper-button>
      <paper-button disabled class="disabled">disabled</paper-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-button
cd paper-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-managementzagenzagen-production@xgd/xgd-home-hero@navigateconsulting/eva-botf6c-image-sliderzagen-zagen@teipublisher/pb-components7executable_esm_aa_webcomponentsair_controlcontact-dialog2@phil-cd/frontendtest2paper-loginscreen@infinitebrahmanuniverse/nolb-_poltest-pkg-form-builder@everything-registry/sub-chunk-731confirm-elementcontact-dialogcute-itemcute-loginetools-filefile-list-componentfirebase-autoformecqm-add-measureecosis-client-commonsh2-elementsglobular-mvcglobular_admindocumentationreacthsos-flexible-formhsos-login-formintervention-pagespolymer-3-boilerplateopinion-buttonpk-ecqm-loginpk-bonnie-testmeasure@edirect/app-datepicker@elifent/paper-datepicker@doubletrade/lit-dialogmammooc-rating-widgetlit-paginationisuwang-elementsisu-elementsisu-elementmhva-lugares-crudmhva-lugares-appmicro-fabric-uxrpdfviwerskyeditorsoccer-cardtangy-formtangy-custom-formtest-contact-dialogmumaa-dialogmusic-componentmono-ops-buttonnodecgnodecg-twitchienodecg-twitchie-graphicsnexus-portal-componentsns-test-account-elementsns-test-shop-elementsoe-studiooe-dateoe-date-rangeoe-inputoe-message-handleroe-toggleoe-ui-miscoe-workflow-ui-componentsunity-core-betavowo-submenu-dialogxgd-home-herowysiwyg-e-forkwysiwyg-e-nofontwise-shopping-cart@unicef-polymer/etools-date-time@unicef-polymer/etools-dialog@unicef-polymer/etools-toasts@unicef-polymer/etools-upload@unicef-polymer/etools-file@unicef-polymer/etools-filters@uvalib/uvalib-search-box@uxland/uxl-interaction@smyd/app-cart@smyd/app-checkout@smyd/app-inputs@smyd/app-pay@smyd/app-shell@smyd/asg-search@smyd/checkout-items-sync@smyd/checkout-pay@smyd/cms-elements@smyd/cms-events@smyd/dhg-elements@ucd-lib/cork-cancel-button@ucd-lib/cork-search-box@uxland/uxl-login@shifang2013/log-in@shifang2013/paper-facebook-login@things-factory/modeller-ui
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.0.14-pre.3

8 years ago

1.0.14-pre.2

8 years ago

1.0.14-pre.1

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.1

9 years ago