1.7.1 • Published 6 months ago

lifeweb-text-highlighter v1.7.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 months ago

text highlighter

NPM version NPM downloads NPM downloads MIT License

Text Highlight

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

Attributetypedefault
caseSensitivebooleanfalse
searchWordsPatternItem[][]
textToHighlightstring''
globalClassNamestringnull
globalStyleCSSPropertiesnull
globalOnClickfunctionnull

Pattern Item

Attributetypedefault
textRegExp string
classNamestringnull
styleCSSProperties{background: yellow}
onClickfunctionnull
renderfunctionnull

License

MIT

author

Nafiseh Mahdianfar nama996


Lifeweb Company lifeweb.webapp@gmail.com

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