@empathyco/x-components
Version:
Empathy X Components
27 lines (18 loc) • 1.56 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsState](./x-components.facetsstate.md)
## FacetsState interface
Facets store state.
**Signature:**
```typescript
export interface FacetsState
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [config](./x-components.facetsstate.config.md) | | [FacetsConfig](./x-components.facetsconfig.md) | The current facets config [FacetsState.config](./x-components.facetsstate.config.md)<!-- -->. |
| [facets](./x-components.facetsstate.facets.md) | | Record<Facet\['id'\], Omit<Facet, 'filters'>> | The facets without their filters. |
| [filters](./x-components.facetsstate.filters.md) | | Record<Filter\['id'\], Filter> | Record of all available filters indexed by its id. |
| [groups](./x-components.facetsstate.groups.md) | | Record<Facet\['id'\], [GroupId](./x-components.groupid.md)<!-- -->> | Record specifying the group each facet belongs to. |
| [preselectedFilters](./x-components.facetsstate.preselectedfilters.md) | | RawFilter\[\] | Record of preselected filters indexed by its id. |
| [query](./x-components.facetsstate.query.md) | | string | The current query [FacetsState.query](./x-components.facetsstate.query.md)<!-- -->. |
| [stickyFilters](./x-components.facetsstate.stickyfilters.md) | | Record<Filter\['id'\], Filter> | Record of sticky filters indexed by its id. |