-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbackdrop.ts
More file actions
39 lines (33 loc) · 873 Bytes
/
backdrop.ts
File metadata and controls
39 lines (33 loc) · 873 Bytes
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
35
36
37
38
39
import { html, LitElement, property, TemplateResult } from "lit-element";
import { customElement } from "lit-element";
import { AriaRole } from "../util/aria";
import { cssResult } from "../util/css";
import styles from "./backdrop.scss";
/**
* Backdrop properties.
*/
export interface IBackdropProperties {}
/**
* Dark layer to use behind overlayed elements.
* @cssprop --backdrop-bg - Background.
*/
@customElement("wl-backdrop")
export class Backdrop extends LitElement implements IBackdropProperties {
static styles = [cssResult(styles)];
/**
* Role of the backdrop.
* @attr
*/
@property({ type: String, reflect: true }) role: AriaRole = "presentation";
/**
* Returns the template of the element.
*/
protected render(): TemplateResult {
return html``;
}
}
declare global {
interface HTMLElementTagNameMap {
"wl-backdrop": Backdrop;
}
}