Add collapsible option to facet components
See original GitHub issueDo you want to request a feature or report a bug?
Feature
Feature: What is your use case for such a feature?
This would help bring parity to the options we have available in the vanilla JS version of InstantSearch.js. The use case of this is to have primary filters expanded for prominence, but secondary filters minimized that can later be expanded. It can also help when you have a number of filters on the page, to avoid the page requiring scrolling by default.
Feature: What is your proposed API entry? The new option to add? What is the behavior?
I would see this being a prop that we pass to the component :collapsible="true"
and then perhaps a default state :collapsed="false"
.
What is the version you are using? Always use the latest one before opening a bug issue.
The latest, vue-instantsearch@1.5.2.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Here’s an example implementation of
ais-panel
enhanced with collapsing abilities: https://codesandbox.io/s/8xl54vl5r2@Haroenv I was thinking of something very similar.