Components
<AisSortBy>
Switch between replica indices (sorting strategies).
Usage
<AisInstantSearch :configuration="configuration">
<AisSortBy :items="sortByItems" />
</AisInstantSearch>
const sortByItems = [
{ value: "instant_search", label: "Featured" },
{ value: "instant_search_price_asc", label: "Price asc" },
{ value: "instant_search_price_desc", label: "Price desc" },
];
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{ value: string; label: string }> | required | Replica index options. |
transformItems | function | undefined | Transforms sort options before rendering. |