MentionInput Component

Overview

This repository contains a React component called "MentionInput." It's designed to handle mentions in input fields, and it can be used in various applications.

Getting Started

To get started with this project, follow the steps below:

Prerequisites

  • Node.js: Make sure you have Node.js installed on your system.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Vasu7389/mention-input
  2. Navigate to the project directory:

    cd mention-input
  3. Install the project dependencies:

    npm install

Usage

To use the "MentionInput" component in your project, you can import it and include it in your application code. Here's an example of how to use it:

import MentionInput from "./MentionInput";

function App() {
  return (
    <div>
      {/* Your other components */}
      <MentionInput />
      {/* Your other components */}
    </div>
  );
}

export default App;

Running the Application Locally

To run the application locally, follow these steps:

  1. Make sure you have completed the installation steps mentioned above.

  2. Start the development server:

    npm run dev
  3. Open your web browser and visit http://localhost:5173 to view the application.

Running Test Cases

To run the test cases for the "MentionInput" component, you can use the following command:

npm test

This will execute the unit tests and provide you with the test results.

Contributing

We welcome contributions to this project. If you'd like to contribute, please follow these steps:

  1. Fork the repository on GitHub.

  2. Clone your forked repository to your local machine.

  3. Create a new branch for your work:

    git checkout -b feature/my-feature
  4. Make your changes, add tests if applicable, and commit them.

  5. Push your changes to your fork on GitHub.

  6. Create a pull request (PR) from your fork's branch to the main repository's main branch. Be sure to provide a clear and detailed description of your changes in the PR.

Thank you for your contributions!