UNPKG

@empathyco/x-components

Version:
34 lines (28 loc) 1.4 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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; }; }>>, {}, {}> ```