ais-autocomplete
<ais-autocomplete // Optional parameters :escape-html="boolean" :class-names="object" />
About this widget
The ais-autocomplete
widget provides the logic to create a connected component that provides access to all indices of your InstantSearch instance.
To configure the number of hits to show, use the ais-hits-per-page
widget or the ais-configure
widget.
To retrieve results from multiple indices, use the ais-index
widget.
If you’re building an autocomplete, you should use the Autocomplete library which lets you build a full-featured, accessible autocomplete experience. This is the recommended way of building an autocomplete search with Algolia.
Examples
1
<ais-autocomplete />
Props
escape-html
|
type: boolean
default: true
Optional
Whether to escape HTML entities from hits string values. |
||
Copy
|
|||
class-names
|
type: object
default: {}
Optional
The CSS classes to override.
|
||
Copy
|
Customize the UI
default
|
The slot to override the complete DOM output of the widget. Note that when you implement this slot, none of the other slots will change the output, as the default slot surrounds them. Scope
The indices contains their hits and results, and the main index in first position. You can leverage the highlighting feature of Algolia through the
|
||
Copy
|