@empathyco/x-components
Version:
Empathy X Components
66 lines (60 loc) • 2.48 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseModal](./x-components.basemodal.md)
Base component with no XPlugin dependencies that serves as a utility for constructing more complex modals.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
open: {
type: BooleanConstructor;
required: true;
};
focusOnOpen: {
type: BooleanConstructor;
default: boolean;
};
referenceSelector: StringConstructor;
animation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
default: () => import("vue").DefineComponent<{}, {}, any>;
};
overlayAnimation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
default: () => import("vue").DefineComponent<{}, {}, any>;
};
contentClass: StringConstructor;
overlayClass: StringConstructor;
}, {
emitOverlayClicked: (event: Event) => void;
isWaitingForLeave: import("vue").Ref<boolean>;
modalContentRef: import("vue").Ref<HTMLDivElement | undefined>;
modalRef: import("vue").Ref<HTMLDivElement | undefined>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click:overlay" | "focusin:body")[], "click:overlay" | "focusin:body", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
open: {
type: BooleanConstructor;
required: true;
};
focusOnOpen: {
type: BooleanConstructor;
default: boolean;
};
referenceSelector: StringConstructor;
animation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
default: () => import("vue").DefineComponent<{}, {}, any>;
};
overlayAnimation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
default: () => import("vue").DefineComponent<{}, {}, any>;
};
contentClass: StringConstructor;
overlayClass: StringConstructor;
}>> & {
"onClick:overlay"?: ((...args: any[]) => any) | undefined;
"onFocusin:body"?: ((...args: any[]) => any) | undefined;
}, {
focusOnOpen: boolean;
animation: string | Function | Record<string, any>;
overlayAnimation: string | Function | Record<string, any>;
}, {}>
```