This is a web component for embedding Hub annotations into websites.
- Publish to NPM
- Put a script tag similar to this
<script src='https://unpkg.com/hub-annotations-component@0.0.1/dist/annotationscomponent.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
- Run
npm install hub-annotations-component --save
- Put a script tag similar to this
<script src='node_modules/hub-annotations-component/dist/annotationscomponent.js'></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
- Run
npm install hub-annotations-component --save
- Add an import to the npm packages
import hub-annotations-component;
- Then you can use the element anywhere in your template, JSX, html etc
- Clone the repository
cd hub-annotations-component
npm install
npm run start