https://github.com/mcamac/react-text-annotate
React components for interactively highlighting parts of text.
https://github.com/mcamac/react-text-annotate
react
Last synced: 5 months ago
JSON representation
React components for interactively highlighting parts of text.
- Host: GitHub
- URL: https://github.com/mcamac/react-text-annotate
- Owner: mcamac
- License: mit
- Created: 2018-04-07T22:06:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T01:56:37.000Z (over 3 years ago)
- Last Synced: 2025-12-07T04:14:10.053Z (7 months ago)
- Topics: react
- Language: TypeScript
- Homepage: https://mcamac.github.io/react-text-annotate
- Size: 4.02 MB
- Stars: 137
- Watchers: 5
- Forks: 54
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-text-annotate
[](https://www.npmjs.com/package/react-text-annotate)
A React component for interactively highlighting parts of text.
## Usage
React `16.8.0` or higher is required as a peer dependency of this package.
```
npm install --save react-text-annotate
```
[Docs](https://mcamac.github.io/react-text-annotate/)
## Examples
A simple controlled annotation.
```tsx
import {TokenAnnotator, TextAnnotator} from 'react-text-annotate'
```