-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
84 lines (79 loc) · 2.05 KB
/
index.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Register service worker if supported. -->
<!--
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js');
}
</script>
-->
<!-- Load polyfills -->
<script
src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"
defer
></script>
<!-- Load components via WebComponents.waitFor -->
<script type="module">
window.WebComponents = window.WebComponents || {
waitFor(cb) {
addEventListener("WebComponentsReady", cb);
}
};
WebComponents.waitFor(async () => {
import("./src/my-button.js");
import("./src/my-input.js");
import("./src/my-toggle.js");
import("./src/my-tooltip.js");
});
</script>
<!-- Change stuff here for your app -->
<meta name="description" content="start-lit-element" />
<meta name="theme-color" content="#ffffff" />
<title>start-lit-element</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="manifest" href="./manifest.json" />
<link rel="shortcut icon" href="/manifest/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta charset="UTF-8" />
</head>
<body>
<my-button></my-button>
<my-button kind="primary"></my-button>
<my-button kind="danger"></my-button>
<my-button disabled></my-button>
<br />
<hr />
<br />
<my-input placeholder="Email"></my-input>
<br />
<hr />
<my-input placeholder="Error" error="true"></my-input>
<br />
<hr />
<my-input placeholder="Disabled" disabled></my-input>
<br />
<hr />
<br />
<div>
<my-toggle />
</div>
<br />
<div>
<my-toggle on="true" />
</div>
<br />
<div>
<my-toggle disabled/>
</div>
<br>
<div>
<my-tooltip text="component" arrow="left"/>
</div>
<br>
<div>
<my-tooltip text="component" arrow="left" error/>
</div>
</body>
</html>