<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseAddToCart](./x-components.baseaddtocart.md)

## BaseAddToCart variable

Renders a button with a default slot. It receives the result with the data and emits [XEventsTypes.UserClickedResultAddToCart](./x-components.xeventstypes.userclickedresultaddtocart.md) to the bus on click mouse event.

**Signature:**

```typescript
_default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
    result: {
        type: PropType<Result>;
        required: true;
    };
}>, {
    events: import("vue").ComputedRef<Partial<XEventsTypes>>;
    metadata: Omit<WireMetadata, "moduleName" | "origin" | "location">;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
    result: {
        type: PropType<Result>;
        required: true;
    };
}>> & Readonly<{}>, {}, {}, {
    BaseEventButton: import("vue").DefineComponent<{}, {}, any>;
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>
```
