1.0.3 • Published 2 months ago

web-annotator-react v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Website Annotator

Easy to use react website annotation library. Incorporate Annotation function in just few Line of Code.

Installation

Install my-project with npm

  npm install react-annote

Verification ID

You need to generate a unique verification id for each project. You can do this using the link below

Link

Usage/Examples

import React,{ useState } from 'react';
import Annote from 'web-annotator-react';
function App() {
  const [coords,setCoords]=useState({
   origin:{
    x:0,
    y:0
   },
   target:{
    x:0,
    y:0
   }
  })
  let verificationID = {ENTER THE GENERATED ID HERE}
  return (
    <Annote
       onSelect={(e,coords)=>{
         setCoords({
          origin:coords.origin,
          target:coords.target
         })
       }}
       coords={coords}
       style={{
        backgroundColor: "rgba(0,0,255,0.4)",
        borderColor: "blue",
        borderColor: "5px dotted blue"
      }}
      annoteId = {verificationID}
    >
    <div className="App" >
    //  your Code
    </div>
    </Annote>
  );
}

export default App;
1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago