1.0.2 • Published 6 years ago

react-simple-text-highlighter v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

TextHighlighter

simple react component for text highlight

example

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
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago