A reusable page filter component, that adds the selected filter values to the search params / query string, and can be retrieved used the useSearchParam hook, or the general window object.
The PageFilter examples can probably be cleaned up a bit more, and made a bit more explanatory. But I think for now it is fine to have it merged in.
Currently working on a way to trigger submit and "reset" from outside of the PageFilter component. But that will come in another PR.
Breaking changes?
Removed single quotes from format and lint scripts in package.json as it wasn't working on my Windows machine. Please verify that it still works on Mac.
Page Filter
What are you adding?
A reusable page filter component, that adds the selected filter values to the search params / query string, and can be retrieved used the
useSearchParam
hook, or the generalwindow
object.The
PageFilter
examples can probably be cleaned up a bit more, and made a bit more explanatory. But I think for now it is fine to have it merged in.Currently working on a way to trigger submit and "reset" from outside of the
PageFilter
component. But that will come in another PR.Breaking changes?
Removed single quotes from
format
andlint
scripts inpackage.json
as it wasn't working on my Windows machine. Please verify that it still works on Mac.Related PR
None.