Skip to main content
Signature

Import

See this widget in action

Preview this widget and its behavior.

About this widget

The configure widget lets you provide raw search parameters to the Algolia API without rendering anything. Any props you add to this widget is forwarded to Algolia. For more information about the different parameters you can set, see the search parameters API reference.

Examples

JavaScript

Options

object
required
A list of search parameters to enable when the widget mounts.
JavaScript

HTML output

This widget doesn’t have any HTML output.

Customize the UI with connectConfigure

If you want to create your own UI of the configure widget, you can use connectors. To use connectConfigure, you can import it with the declaration relevant to how you installed InstantSearch.js.
Then it’s a 3-step process:
JavaScript

Create a render function

This rendering function is called before the first search (init lifecycle step) and each time results come back from Algolia (render lifecycle step).
JavaScript

Rendering options

function
Removes the provided searchParameters and applies the one provided to the function.
JavaScript
object
All original widget options forwarded to the render function.
JavaScript

Create and instantiate the custom widget

First, create your custom widgets using a rendering function. Then, instantiate them with parameters. There are two kinds of parameters you can pass:
  • Instance parameters. Predefined options that configure Algolia’s behavior.
  • Custom parameters. Parameters you define to make the widget reusable and adaptable.
Inside the renderFunction, both instance and custom parameters are accessible through connector.widgetParams.
JavaScript

Instance options

object
required
A list of search parameters to enable when this widget renders.
JavaScript

Full example

Last modified on July 22, 2026