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
| Prop | Type | Default | Description |
|---|---|---|---|
hit | Hit | required | Hit object containing _snippetResult. |
attribute | string | required | Snippet attribute path in _snippetResult. |
highlightedTagName | string | "mark" | HTML tag used for highlighted parts. |