1.7.1 • Published 6 months ago
lifeweb-text-highlighter v1.7.1
text highlighter
text highlighter... :)
Installation
npm i lifeweb-text-highlighter
Usage
import Highlighter from 'lifeweb-text-highlighter'
<Highlighter
searchWords = {[{text: "test", style: {backgroundColor: 'yellow'}}]}
textToHighlight = {"this is a test"}
/>
Props
Attribute | type | default |
---|---|---|
caseSensitive | boolean | false |
searchWords | PatternItem[] | [] |
textToHighlight | string | '' |
globalClassName | string | null |
globalStyle | CSSProperties | null |
globalOnClick | function | null |
Pattern Item
Attribute | type | default |
---|---|---|
text | RegExp string |
|
className | string | null |
style | CSSProperties | {background : yellow } |
onClick | function | null |
render | function | null |
License
MIT
author
Nafiseh Mahdianfar nama996
1.7.1
6 months ago
1.7.0
6 months ago
1.6.1
1 year ago
1.6.0
1 year ago
1.3.2
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.3.1-stable
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago