setup.html
<script src="../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="../node_modules/lit/polyfill-support.js"></script>
<script type="module" src="../dist/index.js"></script>
setup.css
ti-editor {
margin: 20px;
}
editor.html
<ti-preview>
<figure>
<figcaption>index.html</figcaption>
<pre>
<h1>Hello World!</h1>
<p>We have to go deeper.</p>
</pre>
</figure>
<figure>
<figcaption>styles.css</figcaption>
<pre>
h1 {
font-family: 'Comic Sans MS';
}
p {
font-style: italic;
color: hotpink;
}
</pre>
</figure>
</ti-preview>