UNPKG

@empathyco/x-components

Version:
33 lines (27 loc) 1.37 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseEventButton](./x-components.baseeventbutton.md) ## BaseEventButton variable Component to be reused that renders a `<button>` with the logic of emitting events to the bus on click. The events are passed as an object to prop [XEvent](./x-components.xevent.md)<!-- -->. The keys are the event name and the values are the payload of each event. All events are emitted with its respective payload. If any event doesn't need payload a `undefined` must be passed as value. **Signature:** ```typescript _default: import("vue").DefineComponent<{ events: { type: PropType<Partial<XEventsTypes>>; required: true; }; metadata: { type: PropType<Omit<WireMetadata, "moduleName">>; }; }, { emitEvents: () => void; rootRef: import("vue").Ref<HTMLButtonElement | undefined>; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ events: { type: PropType<Partial<XEventsTypes>>; required: true; }; metadata: { type: PropType<Omit<WireMetadata, "moduleName">>; }; }>>, {}, {}> ```