1.0.2 • Published 6 years ago
react-simple-text-highlighter v1.0.2
TextHighlighter
simple react component for text highlight
install
$ npm install --save react-simple-text-highlighter
usage
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