Skip to main content

Results Container

Add toDiv / container

Role attribute

Every instance of this component carries:

Add this attribute
Namewf-algolia-element
Valueresults
Optional2 attributes
Hide empty

Hide the container when the result set is empty.

Accepts true · falseDefault true

Hide class

Class toggled instead of the hidden attribute when empty.

Accepts e.g. is-hidden

Elements inside it

These roles are placed inside this component, not on their own:

results
└─ template
  • — The hit card template - detached at scan time and cloned once per hit, with the wf-algolia-text/image/link bindings inside it.