Skip to content

A select dropdown component that supports infinite scrolling and search filter

Notifications You must be signed in to change notification settings

steph-crown/infinite-scroll-select-dropdown

Repository files navigation

Infinite Scroll Select Dropdown

Overview

Infinite Scroll Select Dropdown is a dynamic and user-friendly UI component for web applications. It enhances the traditional select dropdown by introducing infinite scrolling capabilities, allowing users to seamlessly browse through a large dataset. This project integrates with the https://dummyjson.com API to fetch paginated data, providing a smooth and continuous scrolling experience. Additionally, it supports a search filter, enabling users to easily find the options they are looking for.

Features

  • Infinite Scrolling: Dynamically loads data as the user scrolls, perfect for handling large datasets.
  • API Integration: Fetches paginated data from https://dummyjson.com, ensuring up-to-date and relevant options.
  • Search Filter: Includes a search function to quickly filter dropdown options based on user input.
  • Responsive Design: Adapts to various screen sizes and devices for a consistent user experience.

Getting Started

Prerequisites

  • Node.js
  • NPM or Yarn

Installation

  1. Clone the repository:
git clone https://github.com/Steph-crown/infinite-scroll-select-dropdown.git
  1. Navigate to the project directory:
cd infinite-scroll-select-dropdown
  1. Install dependencies:
npm install

or

yarn install

Usage

To start the project, run:

npm start

or

yarn start

This will launch the application in your default web browser.

How It Works

The dropdown component initializes by fetching the first set of data from the https://dummyjson.com API. As the user scrolls through the dropdown, it detects when the end of the list is approaching and fetches the next set of data, appending it to the existing options. The search filter functionality allows users to type in a query, which filters the displayed options based on their input.

About

A select dropdown component that supports infinite scrolling and search filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published