@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 761 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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
| Parameter | Type | Description |
| --- | --- | --- |
| component | ComponentPublicInstance | The component to check if it is an X-Component. |
**Returns:**
boolean
A boolean which flags if a component is a X-Component.