added first lit component for example
This commit is contained in:
1 parent
4c99592b8b
commit
8fb37b4807
3 files changed
+26
-2
No files matched your search
@@ -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);
|
||||
|
||||
Whitespace-only changes.
Reference in new issue
Block a user