useRefinementList hook provides the logic to build custom refinement list (multi-select facet) components.
Import
Parameters
The attribute to create the refinement list for.
How to combine refinements.
Maximum number of items to display.
Whether to enable the “show more” functionality.
Maximum number of items to display when “show more” is active.
How to sort the facet values.
Whether to escape facet values.
Function to transform the items.
Returns
The list of refinement values.
Function to toggle a refinement.
Function to search within facet values.
Whether the current items are from a facet search.
Whether refinements can be applied.
Whether the “show more” toggle is available.
Whether “show more” is currently active.
Function to toggle between showing more/less items.
Whether all possible facet values are displayed.
Function to create a URL for a facet value.
Function to send Insights events.