0.0.1 • Published 6 months ago

@rxvorg/icon v0.0.1

Weekly downloads
-
License
AGPL-3.0-only
Repository
-
Last release
6 months ago

IA Icons

This repo builds JS source, tests, and test pages, from a subdirectory of svg files:

svg/

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

test/

Updating

Please run:

./bin/build.sh

in 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

6 months ago