1.0.12 • Published 4 years ago

react-annotate-text v1.0.12

Weekly downloads
34
License
MIT
Repository
github
Last release
4 years ago

react-annotate-text

A custom react component for annotating text content inside HTML

Demo

Installation

npm install react-annotate-text

Feel free to replace with yarn counterparts.

Usage

import ReactAnnoteText from "react-annotate-text";
<ReactAnnotateText
  srcDoc={htmlContent}
  src={htmlURL}
  iframeTitle={"Demo"}
  height={600}
  width={500}
  highlightData={highlightData}
  selectionPopup={position => (
    <button onClick={() => addHighlightClick(position)}>Add Highlight</button>
  )}
  hoverPopup={id => (
    <button onClick={() => removeHighlightClick(id)}>Remove Highlight</button>
  )}
/>

See example directory for complete code.

Contributing

  1. Install dependencies
npm install
  1. Start development server
npm start
1.0.12

4 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago