Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 913 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 913 Bytes

React Horizontal Filter Component

List down filter components in horizontal bar, if there are many filters and they don't adjust in the available space, move rest of the filters in dropdown. On window resize re-adjust all filters.

Overview

This is a reusable React component designed to display a set of filters in a horizontal bar. If the available space is not sufficient to accommodate all filters, the excess filters are moved into a dropdown menu. The component also automatically re-adjusts the layout when the window is resized.

Features

  • Display a list of filters in a horizontal bar.
  • If there is limited space, move additional filters into a dropdown menu.
  • Automatic re-adjustment of the layout on window resize.

Start application

install dependencies

yarn install

run application

yarn dev

Live demo https://stackblitz.com/edit/filters-bar?file=src%2FApp.js