Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

react-text-highlight

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

react-text-highlight

Simple React component for highlight a text

    0.2.0latest

Version published
Maintainers
1
Yearly downloads
8,434
increased by63.23%

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

What is react-text-highlight?

Simple React component for highlight a text

Is react-text-highlight popular?

The npm package react-text-highlight receives a total of 99 weekly downloads. As such, react-text-highlight popularity was classified as not popular.

Is react-text-highlight well maintained?

We found that react-text-highlight demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 13 Mar 2017
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc