Components
<AisInfiniteHits>
Infinite Hits widget
Usage
MySearchExperience.vue
<template>
<div>
<AisInstantSearch :widgets :configuration>
<AisInfiniteHits></AisInfiniteHits>
</AisInstantSearch>
</div>
</template>
<script setup lang="ts">
const widgets = computed(() => [
useAisInfiniteHits({
showPrevious: true,
transformItems: (items) => items.map((item) => item.test),
}),
]);
</script>
Slots, props and widget connector params are all typed! More thorough documentation coming soon :)