- this adds a new demo web app with vite HMR for development - all examples are covered with e2e tests
21 lines
865 B
HTML
21 lines
865 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Using just some parts</title>
|
|
<script type="module" src="./index.js"></script>
|
|
<script>try{document.documentElement.dataset.theme=localStorage.getItem('wcb-theme')||(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light')}catch(e){}</script>
|
|
<link rel="stylesheet" href="../../shell.css" />
|
|
<script type="module" src="../../shell.js"></script>
|
|
</head>
|
|
<body>
|
|
<h1>Using the <code>html</code> tag + <code>createElement</code> directly</h1>
|
|
<p>
|
|
<code>my-quote</code> extends the vanilla <code>HTMLElement</code> — not
|
|
<code>WebComponent</code> — yet still builds its DOM from a tagged
|
|
template.
|
|
</p>
|
|
<my-quote></my-quote>
|
|
</body>
|
|
</html>
|