Skip to main content
Signature

Explore example code

Browse the Current Filters example code on GitHub.

About this widget

Shows the currently active refinements within a given FilterState and lets users remove filters individually.

Examples

Kotlin

Low-level API

If you want to fully control the Current Filters components and connect them manually, use the following components:
  • FilterCurrentViewModel. The logic for current refinements in the FilterState.
  • FilterState. The current state of the filters.
  • FilterCurrentView. The view that renders the current filters.
  • FilterCurrentPresenter. Optional. The presenter that defines the way you want to display the Filters.
Kotlin

Compose UI

InstantSearch provides the FilterCurrentState as a state model, which is an implementation of the FilterCurrentView interface. You need to connect FilterCurrentState to the FilterCurrentConnector or FilterCurrentViewModel like any other FilterCurrentView implementation.
Kotlin

Parameters

filters
Map<FilterAndID, Filter>
default: mapOf()
The default filters to display.
filterState
FilterState
required
The FilterState that will hold your filters.
groupIDs
List<FilterGroupID>
default: listOf()
When specified, only matching current refinements will be displayed.

View

view
FilterCurrentView
required
The view that renders the current filters.
presenter
FilterCurrentPresenter
default:"FilterCurrentPresenterImpl()"
The presenter that defines the way filters are displayed.
Kotlin
Last modified on July 10, 2026