Read Me | Using the Components | <sgnw-components /> | <fsw-components /> | Change Log


Using the Sutton SignWriting Web Components

Script tag

Put tags similar to this in HEAD

<script type="module" src="https://unpkg.com/@sutton-signwriting/sgnw-components@1.1.0/dist/sgnw-components/sgnw-components.esm.js"></script>
<link type="text/css" rel="stylesheet" href="https://unpkg.com/@sutton-signwriting/sgnw-components@1.1.0/dist/sgnw-components/sgnw-components.css"/>

Then use the elements anywhere in your template, JSX, html etc


ES Modules

Put script tag in HEAD

<script type="module">
  import { defineCustomElements } from 'https://unpkg.com/@sutton-signwriting/sgnw-components@1.1.0/loader/index.es2017.mjs';
  defineCustomElements();
</script>

Then use the elements anywhere in your template, JSX, html etc


Node modules


In a stencil-starter app


Sutton SignWriting Web Components

<sgnw-components /> use SignWriting in Unicode (SWU) characters.


Formal SignWriting Web Components

<fsw-components /> use Formal SignWriting in ASCII (FSW) characters.