UNPKG

@empathyco/x-components

Version:
34 lines (28 loc) 1.21 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsProvider](./x-components.facetsprovider.md) ## FacetsProvider variable This component allows to provide facets by prop, to add them to the state of the `Facets X-Module`<!-- -->. These facets will be added to the `Facets X-Module` state together with the facets emitted by the `Search X-Module` through the [SearchXEvents.FacetsChanged](./x-components.searchxevents.facetschanged.md) event. **Signature:** ```typescript _default: import("vue").DefineComponent<{ groupId: { type: PropType<GroupId>; default: string; }; facets: { type: PropType<Facet[]>; required: true; }; }, () => string, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ groupId: { type: PropType<GroupId>; default: string; }; facets: { type: PropType<Facet[]>; required: true; }; }>>, { groupId: string; }, {}> ```