react-text-highlight
Advanced tools
Simple React component for highlight a text
Weekly downloads
Readme
This project is no longer actively maintained.
To run it locally:
npm install
npm run examples
open localhost:8080
npm install --save react-text-highlight
## Usage
import React from 'react';
import TextHighlight from 'react-text-highlight';
class App extends React.Component {
render() {
return (
<div>
<TextHighlight
highlight="ago"
text="A long time ago, in a galaxy far, far away...."
/>
</div>
);
}
}
String to be highlighted.
Text to look for highlighted value.
The HTML element name for the highlighted text, the default is mark
.
Boolean value for case sensitive search, the default is false
.
Simple React component for highlight a text
The npm package react-text-highlight receives a total of 99 weekly downloads. As such, react-text-highlight popularity was classified as not popular.
We found that react-text-highlight demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.