InstantSearch
/
React
/
V6
/
API reference
Jun 25, 2024
CurrentRefinements | React InstantSearch V6 (Deprecated)
Deprecated content
This documentation is for a deprecated version of React InstantSearch.
Some features and settings may be missing or their usage may have changed.
Refer to the documentation for the
latest version of React InstantSearch for up-to-date information.
Signature
Signature
<CurrentRefinements // Optional parameters clearsQuery={boolean} transformItems={function} />
About this widget
The CurrentRefinements
widget displays the list of currently applied refinements.
Examples
Copy
1
2
3
import { CurrentRefinements } from 'react-instantsearch-dom';
<CurrentRefinements />
Props
clearsQuery
Optional
Type:
boolean
Whether the widget should include the query.
Copy
1
<CurrentRefinements clearsQuery />
transformItems
Optional
Type:
function
Modifies the items being displayed, for example, to filter or sort them. It takes items as argument and expects them back in return.
Copy
1
2
3
4
5
<CurrentRefinements
transformItems={items =>
items.filter(item => item.attribute !== 'brand')
}
/>
Did you find this page helpful?