@empathyco/x-components
Version:
Empathy X Components
24 lines • 1.03 kB
TypeScript
/**
* Component that allows to open a modal by emitting {@link XEventsTypes.UserClickedOpenModal}
* with the modalId as payload. It allows full customization with the 'opening-element' slot and
* exposes the 'openModal' function.
*
* @public
*/
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/** The modalId of the modal that will be opened. */
modalId: {
type: StringConstructor;
required: true;
};
}>, {
openModal: ({ target }: Event) => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/** The modalId of the modal that will be opened. */
modalId: {
type: StringConstructor;
required: true;
};
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;
//# sourceMappingURL=base-id-modal-open.vue?vue&type=script&lang.d.ts.map