Description
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 props include caseSensitive, which defaults to false and does not apply to regular expression searches. The ignoreDiacritics prop also defaults to false, and when it is on, matching ignores diacritics. A diacriticsBlacklist prop lists characters that should be treated as having no diacritics, and it does not apply unless ignoreDiacritics is on. The README has Installation and Usage sections, a full Props list, and Development and Testing sections, with a code coverage note. The package is public on GitHub at helior/react-highlighter.…
Highlights
- Highlight fragments of a string
- Search by string or regular expression
- Case-sensitive option
- Ignore diacritics option
- Highlight with an HTML element or class
Ratings & Reviews
No ratings yet
Be the first to rate react-highlighter.
People also visit
react-highlight-words
React component to highlight words within a larger body of text

rich-textarea
A small customizable textarea for React to colorize, highlight, decorate texts

@webscopeio/react-textarea-autocomplete
Offers autocomplete over textarea in style of GitHub

react-search-input
Simple react.js component for a search input, providing a filter function
react-highlighter FAQ
What is react-highlighter?
A React component that highlights selected fragments of text.
Can I search with a regular expression?
Yes. The search prop accepts a string or a regular expression.
Is matching case-sensitive?
Not by default. The caseSensitive prop defaults to false, and it does not apply to regular expression searches.
What does ignoreDiacritics do?
When on, it makes matching ignore diacritics. It defaults to false, and diacriticsBlacklist lists characters to treat as having none.
Is it open source?
Yes. The source is public on GitHub at helior/react-highlighter.
What are the best react-highlighter alternatives?
Popular alternatives to react-highlighter include react-highlight-words, react-highlight and rich-textarea. See all react-highlighter alternatives
















