UNPKG

981 BTypeScriptView Raw
1import { JSXBase } from '../../stencil-public-runtime';
2import { AnimationBuilder, ComponentProps, ComponentRef, FrameworkDelegate, Mode } from '../../interface';
3export interface ModalOptions<T extends ComponentRef = ComponentRef> {
4 component: T;
5 componentProps?: ComponentProps<T>;
6 presentingElement?: HTMLElement;
7 showBackdrop?: boolean;
8 backdropDismiss?: boolean;
9 cssClass?: string | string[];
10 delegate?: FrameworkDelegate;
11 animated?: boolean;
12 swipeToClose?: boolean;
13 mode?: Mode;
14 keyboardClose?: boolean;
15 id?: string;
16 htmlAttributes?: ModalAttributes;
17 enterAnimation?: AnimationBuilder;
18 leaveAnimation?: AnimationBuilder;
19 breakpoints?: number[];
20 initialBreakpoint?: number;
21 backdropBreakpoint?: number;
22 handle?: boolean;
23}
24export interface ModalAnimationOptions {
25 presentingEl?: HTMLElement;
26 currentBreakpoint?: number;
27 backdropBreakpoint?: number;
28}
29export interface ModalAttributes extends JSXBase.HTMLAttributes<HTMLElement> {
30}