Debian Codegraph @

examples/nextjs-v14-app/src/count-display.ts

raw
1 /**
2 * @license
3 * Copyright 2023 Google LLC
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 import {LitElement, html} from 'lit';
8 import {customElement, property} from 'lit/decorators.js';
9
10 @customElement('count-display')
11 export class CountDisplay extends LitElement {
12 @property({type: Number})
13 count = 0;
14 render() {
15 return html`<p>Count: ${this.count}</p>`;
16 }
17 }