summaryrefslogtreecommitdiff
path: root/examples/framework-lit/src/components/Test.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-lit/src/components/Test.js')
-rw-r--r--examples/framework-lit/src/components/Test.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/framework-lit/src/components/Test.js b/examples/framework-lit/src/components/Test.js
new file mode 100644
index 000000000..75d592871
--- /dev/null
+++ b/examples/framework-lit/src/components/Test.js
@@ -0,0 +1,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); \ No newline at end of file