Autocomplete
Role attribute
Every instance of this component carries:
wf-algolia-elementautocompleteVariants
This component ships in several presets.
Standard
Algolia index for live suggestions.
Maximum suggestions fetched per autocomplete-section (hitsPerPage, default 4). Set on the section that hosts the suggestions.
Pre-fetch and show the suggestion section on empty-input focus (before any typing). Set on the autocomplete-section.
Hide the dropdown when there are no results.
Federated
Algolia index per autocomplete section.
Maximum suggestions fetched per autocomplete-section (hitsPerPage, default 4). Set on each section, not the wrapper.
Pre-fetch and show a section on empty-input focus (before any typing). Set on each autocomplete-section.
Algolia index for live suggestions.
Maximum suggestions fetched per autocomplete-section (hitsPerPage, default 4). Set on the section that hosts the suggestions.
Pre-fetch and show the suggestion section on empty-input focus (before any typing). Set on the autocomplete-section.
Hide the dropdown when there are no results.