ns_work_flow_text_blend
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

react-text-annotate-blend

React component library for interactive text annotations with support for overlapping annotations that blend

This project extends and cleans up the TextAnnotator component from react-text-annotate.

Check the docs!

Starter code

Minimum Blended Annotation example:

const value = [
  {
    start: 5,
    end: 29,
    tag: "tagA",
    color: "rgb(179, 245, 66)"
  },
  {
    start: 24,
    end: 41,
    tag: "tagB",
    color: "#42f5f5"
  }
]

<TextAnnotateBlend
    content="This component lets you blend annotations!"
    value={value}
/>

Minimum Annotation example:

const value = [
  {
    start: 0,
    end: 14,
    tag: "tagA",
    color: "rgb(179, 245, 66)",
  },
  {
    start: 24,
    end: 41,
    tag: "tagB",
    color: "#42f5f5",
  },
]

<TextAnnotate
    content="This component lets you blend annotations!"
    value={value}
/>

Readme

Keywords

none

Package Sidebar

Install

npm i ns_work_flow_text_blend

Weekly Downloads

4

Version

0.0.12

License

ISC

Unpacked Size

382 kB

Total Files

18

Last publish

Collaborators

  • rohitrajput1997