73bcce88
luigser
COMPONENTS
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
paper-spinner
=============
Element providing material design circular spinner.
##### Example
```html
<paper-spinner active></paper-spinner>
```
The default spinner cycles between four layers of colors; by default they are
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>
```
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).
##### Example
```html
<paper-spinner alt="Loading contacts list" active></paper-spinner>
```
|