Components
<AisClearRefinements>
Clears active refinements globally or by attribute allowlist/blocklist.
Usage
<AisInstantSearch :configuration="configuration">
<AisClearRefinements id="shipping" :included-attributes="['free_shipping']" />
</AisInstantSearch>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
includedAttributes | string[] | undefined | Only clear refinements for these attributes. |
excludedAttributes | string[] | undefined | Clear everything except these attributes. |
transformItems | function | undefined | Transforms refinement items before clear behavior. |
id | string | "" | Optional widget ID for repeated instances in the same index. |
Use either
includedAttributes or excludedAttributes, not both.