@empathyco/x-components
Version:
Empathy X Components
26 lines (20 loc) • 991 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseIdModalClose](./x-components.baseidmodalclose.md)
## BaseIdModalClose variable
Component that allows to close a modal by emitting [XEventsTypes.UserClickedCloseModal](./x-components.xeventstypes.userclickedclosemodal.md)<!-- -->. It allows full customization with the 'closing-element' slot and exposes the 'closeModal' function.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
modalId: {
type: StringConstructor;
required: true;
};
}, {
closeModal: ({ target }: Event) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
modalId: {
type: StringConstructor;
required: true;
};
}>>, {}, {}>
```