Skip to main content
Signature

Explore example code

Browse the FilterList example code on GitHub.

About this widget

FilterList is a filtering view that displays any kind of filters, and lets users refine the search results by selecting them. Compared to the RefinementList, which takes its values from the search response , this widget displays filters that you add yourself.

Examples

Kotlin

Low-level API

If you want to fully control the FilterList components and connect them manually, use the following components:
  • Searcher. The Searcher that handles your searches.
  • FilterState. The current state of the filters.
  • FilterListViewModel.All. The logic applied to the filters.
  • FilterListView.All. The view that renders the filters.
  • FilterPresenter. Optional. The presenter to customize the display of the filters.
Kotlin

Compose UI

InstantSearch provides the FilterListState as a state model, which is an implementation of the FilterListView interface. You need to connect FilterListState to the FilterListConnector or FilterListViewModel like any other FilterListView implementation.
Kotlin

Parameters

List<Filter>
required
The filters to display.
FilterState
required
The FilterState that will hold your filters.
SelectionMode
default: Multiple
Whether the list can have Single or Multiple selections.
FilterGroupID
default: FilterGroupID(FilterOperator.And)
The identifier for the group of filters.

View

FilterListView.All
The view that renders the filters.
Kotlin
Last modified on April 27, 2026