Read Me | Using the Components | <sgnw-components /> | <fsw-components /> | Change Log
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
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
npm install @sutton-signwriting/sgnw-components --save
<script src='node_modules/@sutton-signwriting/sgnw-components/dist/sgnw-components.js'></script>
in the head of your index.htmlnpm install @sutton-signwriting/sgnw-components --save
import '@sutton-signwriting/sgnw-components';
<sgnw-components /> use SignWriting in Unicode (SWU) characters.
<fsw-components /> use Formal SignWriting in ASCII (FSW) characters.