• Home
Name Date Size #Lines LOC

..--

.github/03-May-2024-3414

demo/03-May-2024-9172

test/03-May-2024-237175

.bower.jsonD03-May-20241.6 KiB4848

.gitignoreD03-May-202417 21

.travis.ymlD03-May-20241.8 KiB2524

CONTRIBUTING.mdD03-May-20243.4 KiB7839

README.mdD03-May-20241.5 KiB5444

bower.jsonD03-May-20241.3 KiB4039

index.htmlD03-May-2024795 2511

paper-fab.htmlD03-May-20245.8 KiB188116

README.md

1[![Build status](https://travis-ci.org/PolymerElements/paper-fab.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-fab)
2
3##<paper-fab>
4
5Material design: [Floating Action Button](https://www.google.com/design/spec/components/buttons-floating-action-button.html)
6
7`paper-fab` is a floating action button. It contains an image placed in the center and
8comes in two sizes: regular size and a smaller size by applying the attribute `mini`. When
9the user touches the button, a ripple effect emanates from the center of the button.
10
11You may import `iron-icons` to use with this element, or provide a URL to a custom icon.
12See `iron-iconset` for more information about how to use a custom icon set.
13
14<!---
15```
16<custom-element-demo>
17  <template>
18    <script src="../webcomponentsjs/webcomponents-lite.js"></script>
19    <link rel="import" href="paper-fab.html">
20    <link rel="import" href="../iron-icons/iron-icons.html">
21    <style is="custom-style">
22      paper-fab {
23        display: inline-block;
24        margin: 8px;
25      }
26
27      paper-fab[mini] {
28        --paper-fab-background: #FF5722;
29      }
30
31      paper-fab[label] {
32        font-size: 20px;
33        --paper-fab-background: #2196F3;
34      }
35
36      .container {
37        display: flex;
38        align-items: center;
39      }
40    </style>
41    <div class="container">
42      <next-code-block></next-code-block>
43    </div>
44  </template>
45</custom-element-demo>
46```
47-->
48```html
49<paper-fab icon="favorite"></paper-fab>
50<paper-fab mini icon="reply"></paper-fab>
51<paper-fab label="��"></paper-fab>
52```
53
54