Skip to content

enesctnn/rick-morty-multi-select-app

Repository files navigation

Multi-Select Component with React and TypeScript

This project implements a multi-select component suitable for various designs. It utilizes React, TypeScript, and Apollo Client with GraphQL to fetch data from the Rick and Morty API.

In Action:

multiple-select-action

Features

  • Multi-select implementation suitable for various designs
  • Fetching data from the Rick and Morty API based on the query entered in the input field
  • Displaying character images, names, and the number of episodes they appear in for each result
  • Highlighting the queried word in the displayed results
  • Adding and removing selected results from the input field
  • Keyboard navigation support for all operations, including arrow keys and tab usage
  • Loading state display
  • Exception handling and displaying error states in the interface

Installation

  1. Clone the repository:
git clone https://github.com/enespcetin/rick-morty-multi-select-app.git
  1. Navigate to the project directory:
cd rick-morty-multi-select-app
  1. Install dependencies:
npm or pnpm install
  1. Start the development server:
npm or pnpm run dev
  1. Open your browser and visit http://localhost:5173/rick-morty-multi-select-app/ to view the app.

Dependencies

Development Dependencies

License

This project is licensed under the MIT License - see the LICENSE file for details.