Skip to content

unchainedui/icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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