Open source alternatives to react-highlight-words
200 open source apps like react-highlight-words, closest match first.
Top picks
- R

react-highlighter
Launchreact-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
- R

react-highlight
Launchreact-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
- V

vue-word-highlighter
Launchvue-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
- R

react-text-truncate
LaunchReact-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
- R

react-pdf-highlighter
Launchreact-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
- R

react-textfit
Launchreact-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

react-diff-viewer-continued
Continuation of a simple and beautiful text diff viewer component
Vscode Highlight
Advanced text highlighter based on regexes. Useful for todos, annotations etc

react-tag-input
React tags is a fantastically simple tagging component for your React projects
React Speech Highlight Demo
React / Vanilla JS Text to Speech with highlighting the words and sentences
About react-highlight-words
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






















