@spectrum-web-components/overlay
Version:
An `<sp-overlay>` element is used to decorate content that you would like to present to your visitors as "overlaid" on the rest of the application. This includes dialogs (modal and not), pickers, tooltips, context menus, et al.
24 lines (23 loc) • 690 B
TypeScript
import type { TriggerInteractions } from './overlay-types.js';
export declare class BeforetoggleClosedEvent extends Event {
currentState: string;
newState: string;
constructor();
}
export declare class BeforetoggleOpenEvent extends Event {
currentState: string;
newState: string;
constructor();
}
export declare class OverlayStateEvent extends Event {
overlay: HTMLElement;
detail: {
interaction: string;
reason?: 'external-click';
};
constructor(type: string, overlay: HTMLElement, { publish, interaction, reason, }: {
publish?: boolean;
interaction: TriggerInteractions;
reason?: 'external-click';
});
}