Hit Preview
Role attribute
Every instance of this component carries:
Add this attribute
Name
wf-algolia-elementValue
hit-previewRequired3 attributes
IndexRequired
Algolia index this preview queries.
FieldRequired
Facet field the preview is scoped to (e.g. "category").
ValueRequired
Facet value the preview filters on (e.g. "Shoes").
Optional2 attributes
Hits per preview
Maximum hits to render inside the preview (default 5).
Hit link template
URL template applied to each previewed hit (e.g. "/blog/{slug}").