<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [isXComponent](./x-components.isxcomponent.md)

## isXComponent() function

Returns if the component is an X-Component. An X-Component is a component that has an [XModule](./x-components.xmodule.md) associated to it.

**Signature:**

```typescript
export declare function isXComponent(component: ComponentPublicInstance): boolean;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

component


</td><td>

ComponentPublicInstance


</td><td>

The component to check if it is an X-Component.


</td></tr>
</tbody></table>

**Returns:**

boolean

A boolean which flags if a component is a X-Component.

