0.0.1 • Published 2 years ago
@rxvorg/icon v0.0.1
IA Icons
This repo builds JS source, tests, and test pages, from a subdirectory of svg files:
Each .svg source file can then be individually imported via JS/TS like:
import twitter from 'https://esm.archive.org/@internetarchive/iaux/icon/twitter.js'You can use in markup with the lit / web components definition like:
<ia-icon-video></ia-icon-video>
<script type="module" src="https://esm.archive.org/@internetarchive/iaux/icon/video.js"></script>Each icon .js file defines an <ia-icon> LitElement web component.
Demo Page
Updating
Please run:
./bin/build.shin a git clone of this repo to rebuild/update src/ and test/ files.
You can add a new (or change an existing) .svg file in the svg/ subdir.
Running the bin/build.sh script will automatically create (or update) the relevant JS and test files.
0.0.1
2 years ago