Filter bar
A filter bar is a collection of components that provide controls to give users more agency over their content or data sets.
- Skin
- CoreUI
- React
- All filters action
- Filter group
- Action group
Filter group
The filter group contains all filter-related buttons. The lead filter button includes a generic “All filters” button that launches a sheet with all available filters.
Action group
The action group contains up to 3 non-filter actions. Additional actions can be collapsed into an overflow icon button in the first position.
Overflow
If the filter bar does not have an action group, the filter group will be scrollable as filter buttons extend beyond the viewport. When scroll is enabled a transparent gradient overlay displays over the filter group as a visual affordance for the scrollable area.
Small
Actions are collapsed into an overflow and quick filter buttons are hidden on smaller screens.
The action group collapses into an overflow first, followed by the trailing filter buttons in the filter group.
Medium
Filter and action group content remain visible as space permits. The action group will collapse into an overflow first, followed by the trailing filter button.
Large
Large screens surface up to the maximum number of content in each group as space permits.
Non-stacking
Content within the filter bar remains on a single line.
Don’t wrap content within the filter bar.
Selected position
Do maintain each filter button’s original position as selections are made. For more details, see Quick filter.
Don’t change the position of filters as selections are made.