1.1.0 • Published 6 years ago

uc-icon v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Unchained UI

Icon

NPM Version NPM Downloads

SVG icon UI component

Usage

import icon from 'uc-icon'

console.log(icon('user'));
// <svg><use xlink:href="#icon-user"></use></svg>

Icons

  1. Define icons:
<svg xmlns="http://www.w3.org/2000/svg" class="svg-icons">
  <symbol id="icon-user" viewBox="0 0 40 40"><path d="M.71.71l40 40m-40 0l40-40" /></symbol>
</svg>
  1. Hide this SVG display:none.
  2. Use icons. Define icons size and colors in the css.

License MIT

© velocityzen