Index
About this widget
Index
is the component that allows you to apply widgets to a dedicated index. It’s useful if you want to build an interface that targets multiple indices.
Examples
1
2
3
4
5
import { Index } from 'react-instantsearch-dom';
<Index indexName="instant_search">
{/* Widgets */}
</Index>
Props
indexName
|
type: string
Required
The index to search into. |
||
Copy
|
|||
indexId
|
type: string
default: value provided for indexName
Optional
An identifier for the index. Providing an |
||
Copy
|
|||
root
|
type: object
default: { Root: "div" }
Optional
Updates the element that is created by |
||
Copy
|
HTML output
1
2
3
<div class="ais-MultiIndex__root">
<!-- Widgets -->
</div>