0.1.2 • Published 3 years ago

@lightspeed/flame-wc-icons v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

flame-wc-icons

Experimental

Flame icons, but as web-components.

TODO

  • Swap out some innerHTML stuff for createElement for better rendering perf
  • Flags as a web component
  • A mini netlify site (no need to use storybook, it's a huge resource hog for little to no reason)
  • Perhaps tests?

Installing

npm install @lightspeed/flame-wc-icons

Then, simply do the following somewhere in your app.

import '@lightspeed/flame-wc-icons';

Usage

<fl-icon name="insert_icon_name_here" size="16px" fill="hotpink"></fl-icon>

On size concerns

This library is about 36kb gzipped of javascript, most of which is simply icons.

As long as this is loaded separately from the primary application bundle, or via some sort of cdn + script defer tags, the overall payload should be very manageable.

0.1.2

3 years ago

0.1.1

3 years ago