paper-fab | Vaadin

A material design floating action button

Published on NPM Build status Published on


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.



npm install --save @polymer/paper-fab

In an html file

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

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);


If you want to send a PR to this element, here are the instructions for running the tests and demo locally:


git clone
cd paper-fab
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm

Running the tests

polymer test --npm


Link to this version
ImportedReleased 14 September 2018BSD 3-clause "New" or "Revised" License
Framework Support
Polymer 1.0+
Polymer 3.0+
Also supported:
Polymer 2 (2.1.0)
Browser Compatibility
Install with
npm install @polymer/paper-fab"@3.0.1"
Run the above npm command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 3.0.1


  • @polymer/iron-flex-layout#^3.0.0-pre.26
  • @polymer/iron-icon#^3.0.0-pre.26
  • @polymer/paper-behaviors#^3.0.0-pre.27
  • @polymer/paper-styles#^3.0.0-pre.26
  • @polymer/polymer#^3.0.0