<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXAPI](./x-components.basexapi.md) &gt; [search](./x-components.basexapi.search.md)

## BaseXAPI.search() method

Searches the query parameter as user query.

**Signature:**

```typescript
search(query?: string): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  query | string | _(Optional)_ Query to be searched. |

**Returns:**

void

