Socket
Socket
Sign inDemoInstall

react-text-highlight

Package Overview
Dependencies
17
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-text-highlight

Simple React component for highlight a text


Version published
Weekly downloads
217
decreased by-20.51%
Maintainers
1
Install size
6.58 MB
Created
Weekly downloads
 

Readme

Source

No Maintenance Intended

No Maintenance Intended

This project is no longer actively maintained.


Demo

Demo

To run it locally:

npm install
npm run examples
open localhost:8080

Install

npm install --save react-text-highlight

## Usage

import React from 'react';
import TextHighlight from 'react-text-highlight';

class App extends React.Component {

  render() {
    return (
      <div>
        <TextHighlight
          highlight="ago"
          text="A long time ago, in a galaxy far, far away...."
        />
      </div>
    );
  }
}

Properties

highlight

String to be highlighted.

text

Text to look for highlighted value.

markTag

The HTML element name for the highlighted text, the default is mark.

caseSensitive

Boolean value for case sensitive search, the default is false.

Keywords

FAQs

Last updated on 13 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc