Components
<AisToggleRefinement>
Binary refinement widget (on/off filter).
Usage
<AisInstantSearch :configuration="configuration">
<AisToggleRefinement attribute="free_shipping" label="Free shipping" />
</AisInstantSearch>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
attribute | string | required | Attribute used by the toggle refinement connector. |
id | string | "" | Optional widget ID for repeated instances (also scoped by indexId). |
on | string | number | boolean | unknown[] | true | Value applied when toggle is enabled. |
off | string | number | boolean | unknown[] | connector default | Value applied when toggle is disabled. |
label | string | connector value name | Optional custom label text. |