@empathyco/x-components
Version:
Empathy X Components
34 lines (28 loc) • 1.4 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseIdModal](./x-components.baseidmodal.md)
## BaseIdModal variable
Component containing a modal expecting a required prop, named `modalId`<!-- -->. It reacts to `UserClickedOpenModal`<!-- -->, `UserClickedCloseModal` and `UserClickedOutOfModal` events, when their payload matches the component's 'modalId' prop, to handle its open/close state. The default slot offers the possibility to customise the modal content.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
animation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
};
modalId: {
type: StringConstructor;
required: true;
};
}, {
el: import("vue").Ref<HTMLElement | undefined>;
isOpen: import("vue").Ref<boolean>;
emitClickOutOfModal: (event: MouseEvent | FocusEvent) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
animation: {
type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
};
modalId: {
type: StringConstructor;
required: true;
};
}>>, {}, {}>
```