<ais-autocomplete // Optional parameters :indices="object[]" :escape-html="boolean" :class-names="object" />
About this widget #
The ais-autocomplete
widget provides the logic to create a connected component that renders results from Algolia. You can configure it with one or several indices.
Note that the widget isn’t shipped with any third-party dropdown component.
To configure the number of hits to show, use the ais-hits-per-page
widget or the ais-configure
widget.
Examples #
1
<ais-autocomplete />
Props #
indices
# |
type: object[]
default: []
Optional
A list of objects that describe other indices to search into. With each index:
|
||
Copy
|
|||
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. 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
|