-
Notifications
You must be signed in to change notification settings - Fork 2
/
dropdown-header.ts
34 lines (30 loc) · 968 Bytes
/
dropdown-header.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { LitElement, html } from 'lit';
import { styles } from './themes/dropdown-header.base.css.js';
import { all } from './themes/header.js';
import { styles as shared } from './themes/shared/header/dropdown-header.common.css.js';
import { themes } from '../../theming/theming-decorator.js';
import { registerComponent } from '../common/definitions/register.js';
/**
* Represents a header item in a igc-dropdown list.
*
* @element igc-dropdown-header
*
* @slot - Renders the header.
*/
@themes(all)
export default class IgcDropdownHeaderComponent extends LitElement {
public static readonly tagName: string = 'igc-dropdown-header';
public static override styles = [styles, shared];
/* blazorSuppress */
public static register() {
registerComponent(this);
}
protected override render() {
return html`<slot></slot>`;
}
}
declare global {
interface HTMLElementTagNameMap {
'igc-dropdown-header': IgcDropdownHeaderComponent;
}
}