UNPKG

@github/details-dialog-element

Version:

A modal dialog opened with a <details> button.

21 lines (20 loc) 609 B
declare class DetailsDialogElement extends HTMLElement { static get CLOSE_ATTR(): string; static get CLOSE_SELECTOR(): string; constructor(); get src(): string | null; set src(value: string | null); get preload(): boolean; set preload(value: boolean); connectedCallback(): void; disconnectedCallback(): void; toggle(open: boolean): void; static get observedAttributes(): string[]; attributeChangedCallback(): void; } declare global { interface Window { DetailsDialogElement: typeof DetailsDialogElement; } } export default DetailsDialogElement;