added first lit component for example

This commit is contained in:
2025-03-24 23:40:04 -05:00
parent 4c99592b8b
commit 8fb37b4807
3 changed files with 26 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
import {LitElement, html} from 'lit';
export class Player extends LitElement {
static properties = {
version: {},
};
constructor() {
super();
this.version = 'STARTING';
}
render() {
return html`
<p>Welcome to the Lit tutorial!</p>
<p>This is the ${this.version} code.</p>
`;
}
}
customElements.define('player-controls', Player);