Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
505 B
2
Indexable
Never
<!doctype HTML>
<html>
  <head>
    <script type="module">
      import {LitElement, css, html} from 'https://unpkg.com/lit-element/lit-element.js?module';

      export class Test extends LitElement {
        styles = css`
          p {
            color: aliceblue;
          }
        `;

        render(){
          return html`<p>Hello from my template.</p>`;
        }
      }

      customElements.define('my-test', Test);
    </script>
  </head>
  <body>
    <my-test></my-test>
  </body>
</html>