Skip to main content
Signature

Import

To ensure optimal bundle sizes, see Optimize build size.
Vue

See this widget in action

Preview this widget and its behavior.

About this widget

The ais-query-rule-custom-data widget displays custom data from Rules. You can use this widget to display banners or recommendations returned by rules when they match search parameters.

Examples

HTML

Props

function
Vue

Customize the UI

The slot to override the complete DOM output of the widget.The following example assumes a rule returned this custom data.
JSON
When you implement this slot, none of the other slots will change the output, as the default slot surrounds them.Scope
  • items: object[]. The items returned by the rules.
Vue
The slot to override the DOM output of the item returned by the rules.The following example assumes a Query Rule returned this custom data.
JSON
Scope
  • item: object. The item returned by the Rules.
Vue

HTML output

HTML
Last modified on July 22, 2026