View it live here: https://chip-drop.vercel.app/
- Clone the repository.
- Install dependencies:
npm install
. - Run the project:
npm run dev
.
- When you click on the input field, a list of items will appear.
- As you type, the list should show only items that match what you're typing.
- Clicking on an item should turn it into a chip at the top, and the input field should adjust automatically.
- Once an item becomes a chip, it should no longer be in the list.
- Each chip has an "X" icon. Clicking it removes the chip and adds the item back to the list.
- When the input is blank and the user presses backspace, the last chip (for example, Nick Giannopoulos) should get highlighted and on again pressing backspace it should get deleted.
Esc
to hide dropdown.Enter
to select option from dropdown.Arrow Up
andArrow Down
to navigate the items of the dropdown.Consecutive Backspaces
to delete last selected option.