Giter Site home page Giter Site logo

utkar-sh-ukla / multiselect-dropdown Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 528 KB

Multiselect Dropdown application featuring dynamic dropdown, search, chip display, and keyboard navigation.

Home Page: https://multiselect-gamma.vercel.app

HTML 12.97% CSS 18.10% TypeScript 68.93%
reactjs typescript

multiselect-dropdown's Introduction

Multiselect React Application

This is a multiselect React application built with TypeScript. It provides a user-friendly interface for selecting multiple items from a dropdown list.

Setting Up the Project

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Install the necessary dependencies by running npm install.
  4. Start the development server by running npm start.

Features

  • Multiselect Dropdown: Allows users to select multiple items from a dropdown list.
  • Search Functionality: Users can search for items within the dropdown list.
  • Chip Display: Selected items are displayed as chips, which can be easily removed.
  • Keyboard Navigation: The dropdown supports navigation using the keyboard.

Specifications

  • Interactive Input Field: Upon clicking the input field, a list of available items is displayed.
  • Dynamic List Filtering: As users type in the input field, the list dynamically updates to display only items that match the entered text.
  • Chip Creation: Selecting an item from the list transforms it into a chip that is displayed above the input field. The input field adjusts its size automatically to accommodate the new chip.
  • Chip Removal: Each chip features a close ("X") icon. Clicking this icon removes the corresponding chip and reintroduces the associated item back into the list.
  • Keyboard Navigation: The dropdown supports navigation using the keyboard.
  • Backspace Functionality (Bonus): When the input field is empty and the user presses the backspace key, the last chip becomes highlighted. If the user presses backspace again, the highlighted chip is deleted.

Built With

  • React - The web framework used.
  • TypeScript - Used for static typing.
  • CSS - Used for styling.

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

multiselect-dropdown's People

Contributors

utkarsh59 avatar utkar-sh-ukla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.