ComponentsFilter Group

FilterGroup

This component implements one potential use-case of the Filter Group pattern Design System Specifies. Due to the enormous variety of capabilities required for this, we strongly recommend checking the code of the component and extend it yourself, while we do not provide a better approach for building this component with smaller and more composable parts.

GitHub LogoSource Code

Usage

Reset to default

If you want to reset the filter group to its default state, you can set the defaultValue to the initial state you want and the Clear Filters button will work as a reset button.

Uncontrolled

You can have the FilterGroup component uncontrolled by omitting the value and onChange props. In this case, the component will manage its own state.

Empty filters

If you need to show a placeholder element while loading the filters or the data for each filter, you can use the leftEmptyElement and rightEmptyElement props on the filterContentProps prop.

Filters in loaded state