Facets with radio button behaviour

Hi there! Is is possible to change the behaviour of the items in the refinementlist from checkbox to radio button? Then I can get results from only one category on click.

Hi there,

The way to go is to use a Menu instead. This component accepts a single refinement and will untoggle the other values:

While in InstantSearch.js, this doesn’t render as radio buttons by default; you can do it with the templates or connector: https://community.algolia.com/instantsearch.js/v2/widgets/menu.html

Thanks for your solution. With the menu it works as desired.

1 Like