Skip to content
react-highlight-words

Open source alternatives to react-highlight-words

200 open source apps like react-highlight-words, closest match first.

Top picks

  1. R

    react-highlighter

    Launch

    react-highlighter is a React component that highlights selected fragments of a string. You give it the text to find, as a string or a regular expression, and it highlights the matching parts using an HTML element, a class, or both. Its prop

    Open source

  2. R

    react-highlight

    Launch

    react-highlight is a React component for syntax highlighting, built on the highlight.js library. You pass a code snippet as the children of the Highlight component as a string, and set its language through a className, so the code is colour

    Open source

  3. V

    vue-word-highlighter

    Launch

    vue-word-highlighter is a Vue library that highlights search words inside a block of text. You pass the search words through the query prop and put the text in the default slot, and each match is wrapped in a highlight tag, which is mark by

  4. R

    react-text-truncate

    Launch

    React-Text-Truncate is a React component that shortens text to a set number of lines and adds an ellipsis when the text is too long. It is meant for multi-line truncation, so a paragraph or a card description can be cut to fit a fixed space

    Open source

  5. R

    react-pdf-highlighter

    Launch

    react-pdf-highlighter is a set of React components for annotating PDF files. Users can select text or an area of a page to create a highlight, see a popover with text for the highlight, and jump back to saved highlights by scrolling to them

    Open source

  6. R

    react-textfit

    Launch

    react-textfit is a React component that fits headlines and paragraphs into any element by sizing their text. It uses a binary search to find the right font size quickly, and the README says it works with any style setup, including line-heig

    Open source

More like react-highlight-words

7
R

react-diff-viewer-continued

Continuation of a simple and beautiful text diff viewer component

Launch
8
R

react-highlight-popover

Headless component for text selection popovers

Launch
9
R

react-markdown

React component to render markdown

Launch
10
V

Vscode Highlight

Advanced text highlighter based on regexes. Useful for todos, annotations etc

Launch
11
P

Parsed Text

[222] - Interactive text based on content recognition

Launch
12
R

react-tag-input

React tags is a fantastically simple tagging component for your React projects

Launch
13
R

React Textarea Code Editor

A simple code editor with syntax highlighting

Launch
14
R

react-quilljs

React Hook Wrapper for Quill, powerful rich text editor

Launch
15
R

React Speech Highlight Demo

React / Vanilla JS Text to Speech with highlighting the words and sentences

Launch
16
R

React Markdown Preview

React component preview markdown text in web browser

Launch
17
S

Sugar High

Super lightweight code syntax highlighter solution

Launch
18
N

number-flow

React component for number transitions and formatting

Launch
19
R

React Markplus

A React markdown editor and previewer

Launch
20
C

contentbit

React components that render Content Blocks: plain Markdown

Launch
21
R

react-vtree

React component for efficiently rendering large tree structures

Launch
22
A

Algolia

Fast, accurate search results, relevance tuning, analytics

Launch
23
R

reactivesearch-vue

UI components for building data-driven apps with Elasticsearch

Launch
24
R

react-selectize

A Stateless & Flexible Select component for React inspired by Selectize

Launch
25
D

date-range-picker

Flexible React date range picker calendar with no dependencies

Launch
26
R

react-rating

A rating react component with custom symbols

Launch
27
R

React PDF

Display PDFs in your React app as easily as if they were images

Launch
28
G

grootstudio

A premium, open source component registry

Launch
29
M

mischief-ui

A playful, high-utility shadcn registry: PDF, DOCX and JSON viewers

Launch
30
R

react-intense

A React component for viewing large images up close

Launch
31
R

react-document-title

A declarative, nested, stateful document.title for React

Launch
32
R

react-scrollchor

A React component for scrolling to #hash links with smooth animations

Launch
33
R

react-data-grid

Feature-rich and customizable data grid React component

Launch
34
R

react-flags-select

react-flags-select React component

Launch
35
R

Remirror

ProseMirror toolkit for React

Launch
36
R

react-blur

React component for blurred backgrounds

Launch
37
R

reactive-button

3D animated react button component with progress bar

Launch
38
R

react-toastify

React notification made easy

Launch
39
Y

yet-another-react-lightbox

Modern React lightbox component

Launch
40
R

react-loading

React loading component

Launch
41
G

Great UI

Copy-paste React and Tailwind CSS components

Launch
42
R

react-tinymce

React TinyMCE component

Launch
43
H

honestui

React UI components, animated interactions, shaders

Launch
44
M

material-ui-search-bar

Material style search bar

Launch
45
V

vue-it-bigger

A simple image / (YouTube) video lightbox component for Vue.js

Launch
46
A

AppBase

Search UI components for React and Vue

Launch
47
L

loading.dev

Lightweight library of loading indicators for React

Launch
48
C

corsair-ui

Copy-and-own React components for Tailwind CSS 3 and 4: forms, overlays

Launch
49
P

Prompt Kit

Chat and AI interface component primitives

Launch
50
L

lightGallery

A customizable, modular, responsive, lightbox gallery plugin

Launch

About react-highlight-words

R

react-highlight-words

React component to highlight words within a larger body of text

react-highlight-words is a React component that highlights words within a larger body of text. You pass it an array of search terms and the text to search, and it marks every occurrence of those terms, wrapping each match so you can style it. The README's basic example highlights and, or and the in a sentence about a dog and a cat, with a highlight class name applied to each match. The documentation covers an active match, which lets you mark one occurrence differently from the rest, class names set per search term, and custom tags in place of the default wrapper. It also supports custom matching logic for cases where a simple string comparison is not enough, and an option for ignoring accents, so that a search for a plain word also matches its accented forms. A playground lets you try the props interactively, and a props reference lists the full set of options. Installation is through npm, and the TypeScript definitions are included in the published package. The project is maintained on GitHub under the bvaughn account, and the README links a GitHub sponsors page and a coffee donation option for supporting the work. It is useful for search results, document viewers and any interface where matching words should stand out in text.

Price
Free
Made by
brianvaughn
Category
UI Libraries
Website
react-highlight-words.vercel.app