Skip to content

Filter Bar

A Filter Bar is a horizontal collection of non-editable pills used to represent the currently applied filters.

Usage

The filter bar is placed above specific parts of the page, making it clear that only those parts will reflect the applied filters.

Filter Bar

When to use

  • Use it to represent the currently applied filters. The filters themselves must be set or changed using separate functionality.
  • Use it if the filter doesn't have to be inline editable.
  • Use it if more than 2-3 filter criteria need to be applied at the same time.

Best Practices for Filter Bar

  • Use one filter pill per filter category.
    • If only one option is selected, show the value (e.g. Munich).
    • If more than one option is selected, show the criteria name in plural with a counter (e.g. 7 cities).
  • Don't use a filter bar if you need to provide inline filter editing functionality. Use the Filtered Search component instead.
  • Use an alternative text like Applied filters to make it accessible for visually impaired people and screen readers.

Except where otherwise noted, content on this site is licensed under MIT License.