Blame view

bower_components/paper-spinner/README.md 1.15 KB
c5169e0e   Renato De Donato   a new hope
1
2
  paper-spinner
  =============
73bcce88   luigser   COMPONENTS
3
  
c5169e0e   Renato De Donato   a new hope
4
  Element providing material design circular spinner.
73bcce88   luigser   COMPONENTS
5
  
c5169e0e   Renato De Donato   a new hope
6
  ##### Example
73bcce88   luigser   COMPONENTS
7
  
c5169e0e   Renato De Donato   a new hope
8
9
10
  ```html
  <paper-spinner active></paper-spinner>
  ```
73bcce88   luigser   COMPONENTS
11
12
  
  The default spinner cycles between four layers of colors; by default they are
c5169e0e   Renato De Donato   a new hope
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  blue, red, yellow and green. It can be customized so that it uses one color only
  by setting all the layer colors to the same value.
  
  ##### Example
  
  ```html
  <style is="custom-style">
    paper-spinner .rainbow {
      --paper-spinner-layer-1-color: yellow;
      --paper-spinner-layer-2-color: red;
      --paper-spinner-layer-3-color: blue;
      --paper-spinner-layer-4-color: green;
    }
  
    paper-spinner .red {
      --paper-spinner-layer-1-color: red;
      --paper-spinner-layer-2-color: red;
      --paper-spinner-layer-3-color: red;
      --paper-spinner-layer-4-color: red;
    }
  </style>
  ```
73bcce88   luigser   COMPONENTS
35
36
37
38
39
40
  
  Alt attribute should be set to provide adequate context for accessibility. If not provided,
  it defaults to 'loading'.
  Empty alt can be provided to mark the element as decorative if alternative content is provided
  in another form (e.g. a text block following the spinner).
  
c5169e0e   Renato De Donato   a new hope
41
  ##### Example
73bcce88   luigser   COMPONENTS
42
  
c5169e0e   Renato De Donato   a new hope
43
44
45
  ```html
  <paper-spinner alt="Loading contacts list" active></paper-spinner>
  ```