This widget is and is subject to change in minor versions.
Signature
Import
- Component
- Plugin
To ensure optimal bundle sizes,
see Optimize build size.
Vue
About this widget
Use theais-feeds widget to display multiple independent result sets from a multifeed composition.
For each feed in the composition, the widget provides a scoped index context and exposes a feedID slot prop, letting you place any InstantSearch widgets inside.
Requires a composition-based InstantSearch instance (the composition-id option must be set on ais-instant-search).
Examples
Vue
Props
Whether each feed runs an isolated search with its own search parameters. Currently only
false is supported, meaning all feeds share the same global search state. The prop is required to make the choice explicit; future releases may add support for true.Vue
A function to transform, reorder, or filter the feed IDs before rendering. Receives the array of feed IDs from the composition response and must return an array of feed IDs (strings).
Vue
Slots
The default slot is rendered once per feed, inside a scoped index context for that feed. It exposes:
feedID. The unique identifier of the feed, as defined in the composition configuration.
Vue