Widgets Introduction

Edit this page

Introduction to widgets

In InstantSearch.js, widgets are the building blocks of search UI.

In order to make your work efficient, InstantSearch.js it comes with a set of widgets factories, functions that create widget instances. Each one of them is specialized by role: searchbox, pagination, numeric filters and so onโ€ฆ

Widgets can be added to the InstantSearch instance using the addWidget method.

const search = instantsearch(/* parameters here */);
search.addWidget(instantsearch.widgets.searchbox(/* searchbox parameters */));

If you want to learn more about the API, have a look at the common widgets API.


Can't find what you are looking for? Open an issue, we'll get back to you.