summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/Test.js
blob: 75d592871561123b117a00fcb8c412ee2591f5c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);