Skip to content

vmorkovyn/react-highlight-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors