UNPKG

padl

Version:
27 lines (21 loc) 579 B
import {html, css, LitElement} from 'lit-element'; class COMPONENT_NAME extends LitElement { // Public property API that triggers re-render (synced with attributes) static get properties() { return { prop1: {type: String} }; } constructor() { super(); this.prop1 = 'DASH_NAME'; } // Render method should return a `TemplateResult` using the provided lit-html `html` tag function render() { return html([` <h2>Hello ${this.prop1}!</h2> <p><slot></slot></p> `]); } } customElements.define('DASH_NAME', COMPONENT_NAME);