0.2.1 • Published 6 years ago

react-highlight-text v0.2.1

Weekly downloads
67
License
-
Repository
github
Last release
6 years ago

npm downloads

react-highlight-text

Quick start

import React from 'react';
import ReactDOM from 'react-dom';
import HighlightText from 'react-highlight-text';

const Text = () => {
    const style = { backgroundColor: 'yellow' };
    return (
        <div>
            <HighlightText text={'example text'} searchQuery={'text'} style={style} />
            <HighlightText text={'example text'} searchQuery={'exam'} style={style} />
        </div>
    );
};

Installation

react-highlight-text requires React >= 0.14

npm

npm install --save react-highlight-text
0.2.1

6 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago