Components

<AisHits>

Hits widget

Usage

MySearchExperience.vue
<template>
  <div>
    <AisInstantSearch :widgets :configuration>
      <AisHits></AisHits>
    </AisInstantSearch>
  </div>
</template>

<script setup lang="ts">
const widgets = computed(() => [
  useAisHits({
    escapeHTML: true,
    transformItems: (items) => items.map((item) => item.test),
  }),
]);
</script>

Slots, props and widget connector params are all typed! More thorough documentation coming soon :)


Copyright © 2023