summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/Test.js
blob: 182755c79bb2aafb5a96954025a8ed1ad93fb918 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { LitElement, html } from 'lit';

export const tagName = 'calc-add';

class CalcAdd extends LitElement {
  static get properties() {
    return {
      num: {
        type: Number,
      },
    };
  }

  render() {
    return html` <div>Number: ${this.num}</div> `;
  }
}

customElements.define(tagName, CalcAdd);