@empathyco/x-components
Version:
Empathy X Components
26 lines (20 loc) • 1 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseIdModalOpen](./x-components.baseidmodalopen.md)
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;
};
}>>, {}, {}>
```