<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [useFiltersInjection](./x-components.usefiltersinjection.md)

## useFiltersInjection() function

Composable to share filters injection logic.

**Signature:**

```typescript
export declare function useFiltersInjection(props: {
    filters?: Filter[];
    parentId?: Filter['id'];
}): import("vue").ComputedRef<Filter[]>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

props


</td><td>

{ filters?: Filter\[\]; parentId?: Filter\['id'\]; }


</td><td>

Composable props.


</td></tr>
</tbody></table>

**Returns:**

import("vue").ComputedRef&lt;Filter\[\]&gt;

An array of filters.

