Skip to content
react-highlight-words

Alternatives to react-highlight-words

200 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

    rich-textarea

    Launch

    A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.

  5. 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

  6. 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

More like react-highlight-words

7
R

react-textfit

React component to fit headlines and paragraphs into any element

Launch
8
W

@webscopeio/react-textarea-autocomplete

Offers autocomplete over textarea in style of GitHub

Launch
9
R

react-typeahead

React-based typeahead and typeahead-tokenizer

Launch
10
R

react-search-input

Simple react.js component for a search input, providing a filter function

Launch
11
I

interweave

React library to safely render HTML, filter attributes, autowrap text

Launch
12
R

react-simple-typewriter

A simple react component for adding a nice typewriter effect to your project

Launch
13
R

react-lines-ellipsis

Simple multiline ellipsis component for React.JS

Launch
14
R

react-mentions-ts

A React component that enables Facebook/Twitter-style @mentions

Launch
15
R

react-diff-viewer-continued

Continuation of a simple and beautiful text diff viewer component

Launch
16
R

react-number-format

React component to format number in an input or as a text

Launch
17
R

react-truncate-inside

React component that truncates text in the middle with an ellipsis

Launch
18
R

react-multiline-clamp

React component that uses the css line clamping

Launch
19
R

react-linkify

React component to parse links (urls, emails, etc.) in text into clickable links

Launch
20
R

react-highlight-popover

Headless component for text selection popovers

Launch
21
H

@hixme-ui/text

hixme-ui text component. For all your communictation needs

Launch
22
R

react-tagsinput

A simple react component for inputing tags

Launch
23
R

react-diff-viewer-continued-react19

Continuation of a simple and beautiful text diff viewer component

Launch
24
C

@cloudflare/ai-search-snippet

A production-ready, self-contained TypeScript Web Component library

Launch
25
R

react-copy-to-clipboard

Copy-to-clipboard React component

Launch
26
R

react-filter-box-updated-logic

Conditional filter supports OR/AND, bracket, Highlighting, Autocomplete

Launch
27
R

react-select-search

Lightweight select component for React

Launch
28
R

react-markdown

React component to render markdown

Launch
29
F

@fawazahmed/react-native-read-more

A simple react native library

Launch
30
R

react-icon-cloud

A React component for rendering an interactive img or word cloud on canvas

Launch
31
V

Vscode Highlight

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

Launch
32
P

prompt-area

An opinionated, dependency-light React rich-text prompt input

Launch
33
R

react-pdf-highlighter-extended

Set of modern React components for PDF highlighting

Launch
34
R

react-file-icon

React component to render svg file icons

Launch
35
R

react-json-pretty

A code formatting tool for raw json data

Launch
36
P

Parsed Text

[222] - Interactive text based on content recognition

Launch
37
S

searchable-react-json-view

Interactive react component for displaying javascript arrays and JSON objects

Launch
38
R

react-textarea-autosize

component for React which grows with content

Launch
39
R

react-autosize-textarea

replacement for built-in textarea which auto resizes itself

Launch
40
R

react-interpolate-component

A component for React that renders elements into a format string containing

Launch
41
F

@flyerhq/react-native-link-preview

Fully customizable preview of the URL extracted from the provided text

Launch
42
R

react-currency-format

React component to format currency in an input or as a text

Launch
43
R

react-code-compare

A simple and fast text diff viewer component

Launch
44
R

react-inner-image-zoom

A React component for magnifying an image within its parent container

Launch
45
R

react-markdown

Render Markdown as React components

Launch
46
R

react-code-input

React component for entering and validating numbers, text or password

Launch
47
R

react-letter

Display e-mail messages in your React projects

Launch
48
R

react-autosuggest

WAI-ARIA compliant React autosuggest component

Launch
49
N

ngx-highlightjs

Instant code highlighting, auto-detect language, super easy to use!

Launch
50
R

react-tag-input

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

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