Nuxt Swiftsearch
Components

<AisSnippet>

Renders snippet highlights from `_snippetResult`.

Usage

<AisInstantSearch :configuration="configuration">
  <AisHits>
    <template #item="{ item }">
      <h3>{{ item.name }}</h3>
      <AisSnippet
        :hit="item"
        attribute="description"
      />
    </template>
  </AisHits>
</AisInstantSearch>

Props

PropTypeDefaultDescription
hitHitrequiredHit object containing _snippetResult.
attributestringrequiredSnippet attribute path in _snippetResult.
highlightedTagNamestring"mark"HTML tag used for highlighted parts.
Copyright © 2026