3.0.1 • Published 7 years ago
@polymer/paper-fab v3.0.1
<paper-fab>
paper-fab is a floating action button. It contains an image placed in the center and
comes in two sizes: regular size and a smaller size by applying the attribute mini. When
the user touches the button, a ripple effect emanates from the center of the button.
See: Documentation, Demo.
Usage
Installation
npm install --save @polymer/paper-fabIn an html file
<html>
  <head>
    <script type="module">
      import '@polymer/paper-fab/paper-fab.js';
      import '@polymer/iron-icons/iron-icons.html';
    </script>
  </head>
  <body>
    <paper-fab icon="favorite"></paper-fab>
    <paper-fab label="😻"></paper-fab>
  </body>
</html>In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-fab/paper-fab.js';
import '@polymer/iron-icons/iron-icons.html';
class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <paper-fab icon="favorite"></paper-fab>
    <paper-fab label="😻"></paper-fab>
    `;
  }
}
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-fab
cd paper-fab
npm install
npm install -g polymer-cliRunning the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/Running the tests
polymer test --npm3.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
8 years ago
3.0.0-pre.14
8 years ago
3.0.0-pre.13
8 years ago
3.0.0-pre.12
8 years ago
3.0.0-pre.11
8 years ago
3.0.0-pre.10
8 years ago
3.0.0-pre.8
8 years ago
3.0.0-pre.7
8 years ago
3.0.0-pre.6
8 years ago
3.0.0-pre.4
8 years ago
3.0.0-pre.3
8 years ago
3.0.0-pre.2
8 years ago
3.0.0-pre.1
8 years ago
1.2.0-pre.3
9 years ago
1.2.0-pre.2
9 years ago
1.2.0-pre.1
9 years ago
0.0.4
9 years ago
0.0.3
10 years ago
0.0.1
10 years ago