UNPKG

generator-lit-element

Version:

Scaffolds a empty lit-element module with tests and documentation

16 lines (9 loc) 405 B
import {LitElement, html} from './node_modules/@polymer/lit-element/lit-element.js'; export class <%= className %> extends LitElement { static get properties() { return { mood: String }} _render({mood}) { return html`<style> .mood { color: green; } </style> Web Components are <span class="mood">${mood}</span>!`; } } window.customElements.define('<%= moduleName %>', <%= className %>);