This repository has been archived by the owner on Apr 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (83 loc) · 2.12 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>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Components with Stencil & Svelte</title>
<!-- Import Web Components -->
<script src="./native/my-counter.js"></script>
<script src="./svelte/public/build/bundle.js"></script>
<script nomodule src="./stencil/www/build/stencil-counter.js"></script>
<script
type="module"
src="./stencil/www/build/stencil-counter.esm.js"
></script>
<style>
html,
body {
margin: 0;
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
flex-direction: column;
gap: 2rem;
}
th {
text-align: left;
}
</style>
</head>
<body>
Learn more at
<a href="https://github.com/SarcevicAntonio/si-web-components">
github.com/SarcevicAntonio/si-web-components
</a>
<table>
<tr>
<th>source</th>
<th>component</th>
</tr>
<tr>
<td>
<a
href="https://github.com/SarcevicAntonio/si-web-components/blob/master/native/my-counter.js"
>
HTMLElement
</a>
</td>
<td>
<my-counter count="30"></my-counter>
</td>
</tr>
<tr>
<td>
<a
href="https://github.com/SarcevicAntonio/si-web-components/blob/master/svelte/src/MyCounter.svelte"
>
Svelte (with {customElement: true})
</a>
</td>
<td>
<my-svelte-counter count="30"></my-svelte-counter>
</td>
</tr>
<tr>
<td>
<a
href="https://github.com/SarcevicAntonio/si-web-components/blob/master/stencil/src/components/stencil-counter/stencil-counter.tsx"
>
Stencil
</a>
</td>
<td>
<stencil-counter count="30"></stencil-counter>
</td>
</tr>
</table>
</body>
</html>