Nuxt Swiftsearch
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

PropTypeDefaultDescription
itemsArray<{ value: string; label: string }>requiredReplica index options.
transformItemsfunctionundefinedTransforms sort options before rendering.
Copyright © 2026