
npm install vue-annotated-text- Renders the text as a set of spans representing the segments composing the sentence
- These spans can be associated with custom styles or events
- Overlapping annotations are represented by mixed colors
With npm:
``bash`
npm install vue-annotated-text
With yarn:
`bash`
yarn add vue-annotated-text
`html`
:annotations="annotations"
:getAnnotationColor="getAnnotationColor"
:getSpanClasses="getSpanClasses"
:spanEvents="spanEvents"
:spanAttributes="spanAttributes"
/>
`js``css``
Uses:
- flatten-overlapping-ranges
- color-mixer
- Add default info box on hover