<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPlugin](./x-components.xplugin.md) &gt; [(constructor)](./x-components.xplugin._constructor_.md)

## XPlugin.(constructor)

Creates a new instance of the XPlugin with the given bus passed as parameter.

**Signature:**

```typescript
constructor(bus: XBus<XEventsTypes, WireMetadata>);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  bus | XBus&lt;[XEventsTypes](./x-components.xeventstypes.md)<!-- -->, [WireMetadata](./x-components.wiremetadata.md)<!-- -->&gt; | The  implementation to use for the plugin. |

