# bvaughn/react-highlight-words

React component to highlight words within a larger body of text

Repository: https://github.com/bvaughn/react-highlight-words
Canonical: https://ross.abutalabs.com/products/react-highlight-words
Homepage: https://bvaughn.github.io/react-highlight-words/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2025-01-12T21:39:54+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 1, release rhythm 8, longevity 100
- inputs: {"age_days": 3913, "days_push": 598, "days_rel": 598, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2304, forks 175 (observed 2026-08-28T04:06:35.649335+00:00)

## What it is
A React component that highlights occurrences of given search terms within a larger body of text. It supports custom styling, active match highlighting, and automatic escaping of search words.

## Use cases
- highlight search terms in search results
- highlight matching text in a react component
- mark occurrences of keywords in text
- highlight user query matches in a list
- highlight words in a paragraph with react

## When to choose
- you need to visually highlight search terms in React-rendered text
- you want a small, focused, well-maintained component with simple props

## When to avoid
- you are not using React
- you need syntax highlighting for code rather than search-term highlighting

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, search-engine
- domain: frontend, web-development
- platform: browser
- tags: react, text-highlighting, search-terms, react-component, search, nodejs

## Member repositories
- bvaughn/react-highlight-words (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.649335+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:43.345076+00:00, confidence not recorded.
  - readme: https://github.com/bvaughn/react-highlight-words (fetched 2026-08-28T04:06:35.649335+00:00, sha 94d602eaaabf)
  - homepage: https://bvaughn.github.io/react-highlight-words/ (fetched 2026-08-29T10:20:26.743700+00:00, sha 861d44584942)
  - registry_npm: https://registry.npmjs.org/react-highlight-words (fetched 2026-08-29T10:20:26.752602+00:00, sha 59254fc28bb5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
