react-simple-text-highlighter
v1.0.2
Published
simple react component for text highlight
Readme
TextHighlighter
simple react component for text highlight
install
$ npm install --save react-simple-text-highlighterusage
import TextHighlighter from 'react-simple-text-highlighter';
<TextHighlighter
text="ABCDEFG"
keyword="CDE"
highlightStyle={{ backgroundColor: '#efefef' }}
/>
props
text: PropTypes.string,
keyword: PropTypes.string,
highlightStyle: PropTypes.object