Options
All
  • Public
  • Public/Protected
  • All
Menu

lit-element

LitElement API Documentation

Install lit-element

npm install lit-element

Modules

lit-element

Extends UpdatingElement to include lit-html templating. Users define a render method to provide an element template, which is called when required by update.

Import LitElement and html from this module to create a component:

import { LitElement, html } from 'lit-element';

class MyElement extends LitElement {
  render() {
      return html`<p>your template here</p>`;
  }
}

customElements.define('my-element', MyElement);

lib/updating-element

import { UpdatingElement } from 'lit-element/lib/updating-element.js';

Custom Element base class that supports declaring observable properties, reflecting attributes to properties, and the core update lifecycle methods.

Generated using TypeDoc