uc-icon
v1.1.0
Published
SVG icon UI component
Downloads
3
Maintainers
Readme
Unchained UI
Icon
SVG icon UI component
Usage
import icon from 'uc-icon'
console.log(icon('user'));
// <svg><use xlink:href="#icon-user"></use></svg>
Icons
- 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>
- Hide this SVG
display:none
. - Use icons. Define icons size and colors in the css.
License MIT
© velocityzen