Skip to content

React Docs Search is a lightweight, standalone text search utility that emulates the functionality of "Ctrl+F" in applications like Google Docs.

License

Notifications You must be signed in to change notification settings

kmdebug/react-doc-search

Repository files navigation

React Docs Search

GitHub last commit GitHub language count GitHub issues GitHub license

React Docs Search is a lightweight, standalone text search utility that emulates the functionality of "Ctrl+F" in applications like Google Docs.

It features inline text search with match highlighting and navigation capabilities (next/previous).

Table of Contents

  1. Features
  2. Demonstration
  3. Technologies
  4. Prerequisites
  5. Getting Started
  6. Contributing

Features

  • Real-Time Search: Search text dynamically as you type
  • Match Highlighting: Visually highlight all matching results
  • Navigation: Navigate through matches using next/previous controls
  • Keyboard Friendly: Seamless keyboard integration (Ctrl+F, Enter, Escape)
  • Customizable: Easily adapt styles and behavior to your application
  • Lightweight: Built with React, optimized for performance

Demonstration

React Document Search Demo

View Live Demo

Technologies

  • React (Vite)
  • TailwindCSS

Prerequisites

Before getting started, it is required to download & install the following:

  • Node.js 14+ (Recommended: Latest LTS version)

Getting Started

It is required to clone or fork this project to get started.

Clone this project by running the following command:

git clone https://github.com/kmdebug/react-doc-search.git

Then change directory:

cd react-doc-search

The application depends on multiple npm packages. To install these dependencies, run npm i or npm install.

npm install

To open the application in the browser, it is required to run the following command in the terminal:

npm run dev

The application should open at http://localhost:5173/ in the development mode.

Contributing

We welcome contributions! To contribute to this project, please follow these steps:

  1. Fork the repository
# On GitHub, click the "Fork" button on the repository page
  1. Clone the repository

Clone your forked repository to your local machine:

git clone https://github.com/YOUR_USERNAME/react-doc-search.git
  1. Create a new branch

Create a new branch for your work (replace BRANCH_NAME with a descriptive name for the branch):

git checkout -b BRANCH_NAME
  1. Make your modifications

Make the necessary changes or improvements to the project.

  1. Commit your changes

After making changes, commit them with a clear, concise message:

git add .
git commit -m "Your detailed commit message here"
  1. Push your changes

Push your changes to your forked repository:

git push origin BRANCH_NAME
  1. Submit a Pull Request

Submit a Pull Request

Contact

For feedback or questions, feel free to reach out:

License

This project is licensed under the MIT license.
Copyright © 2025, Kaissar Mouelhi

(back to top)

About

React Docs Search is a lightweight, standalone text search utility that emulates the functionality of "Ctrl+F" in applications like Google Docs.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published