hub-annotations-component

Hub Annotations web component

Usage no npm install needed!

<script type="module">
  import hubAnnotationsComponent from 'https://cdn.skypack.dev/hub-annotations-component';
</script>

README

Hub Annotations Component

This is a web component for embedding Hub annotations into websites.

Using this component

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://unpkg.com/hub-annotations-component@0.0.1/dist/hub-annotations-component.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install hub-annotations-component --save
  • Put a script tag similar to this <script src='node_modules/hub-annotations-component/dist/hub-annotations-component.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • 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

Built With Stencil