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
"use strict";
import { LitElement, html, css } from "lit-element";
import "@authentic/mwc-circular-progress";
class Spinner extends LitElement {
render() {
return html`
<h3><slot></slot></h3>
<mwc-circular-progress></mwc-circular-progress>
`;
}
static get styles() {
return css`
:host {
display: flex;
flex-direction: column;
align-items: center;
}
`;
}
}
customElements.define("smarthome-spinner", Spinner);