Debian Codegraph @

packages/labs/analyzer/test-files/ts/mixins/src/element-a.ts

raw
1 /**
2 * @license
3 * Copyright 2024 Google LLC
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 import {LitElement, html, css} from 'lit';
8 import {customElement, property} from 'lit/decorators.js';
9 import {Highlightable} from './mixins.js';
10
11 @customElement('element-a')
12 export class ElementA extends Highlightable('hi', LitElement) {
13 static styles = css`
14 :host {
15 display: block;
16 }
17 `;
18
19 @property()
20 a?: string;
21
22 @property({reflect: true, type: Number, attribute: 'bbb'})
23 b = 1;
24
25 render() {
26 return html`<h1>${this.a}</h1>`;
27 }
28 }