UNPKG

@empathyco/x-components

Version:
26 lines (20 loc) 1 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseIdModalOpen](./x-components.baseidmodalopen.md) ## BaseIdModalOpen variable Component that allows to open a modal by emitting [XEventsTypes.UserClickedOpenModal](./x-components.xeventstypes.userclickedopenmodal.md) with the modalId as payload. It allows full customization with the 'opening-element' slot and exposes the 'openModal' function. **Signature:** ```typescript _default: import("vue").DefineComponent<{ modalId: { type: StringConstructor; required: true; }; }, { openModal: ({ target }: Event) => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ modalId: { type: StringConstructor; required: true; }; }>>, {}, {}> ```