astro/examples/framework-lit/src/components/calc-add.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
275 B
JavaScript
Raw Normal View History

import { LitElement, html } from 'lit';
export class CalcAdd extends LitElement {
static get properties() {
return {
num: {
2021-07-13 12:28:50 +00:00
type: Number,
},
};
}
render() {
2021-07-13 12:28:50 +00:00
return html` <div>Number: ${this.num}</div> `;
}
}
customElements.define('calc-add', CalcAdd);