1.0.9 • Published 10 months ago

react-highlighting-textbox v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

React Highlighting Textbox

Do you want to highlight text in a textbox? This is the component for you! This component is built with React and uses react-contenteditable to add html content with spans that can highlight the text.

Installation

npm install react-highlighting-textbox

Screenshot

Demo of the component

Usage

import React, { Component } from 'react';
import HighlightingTextbox from 'react-highlighting-textbox';

class Example extends Component {
  render() {
    return <HighlightingTextbox />;
  }
}

Props

  • value - The text to display in the textbox
  • onChange - A function that is called when the text in the textbox changes
  • word - The word to highlight
  • className - The class name to apply to the textbox
  • spanClassName - The class name to apply to the span that highlights the word

Demo

npm package

1.0.9

10 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

5.0.0

11 months ago