npm

uc-icon

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i uc-icon

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

2.74 kB

Total Files

6

Last publish

Collaborators

  • velocityzen