Icon Font
The premium icon font for uiw Component Library. Designed by @liwen0526.
Visit https://uiwjs.github.io/icons/ and check out the search feature, which has keywords identifying common icon names and styles. For example, if you search for "arrow" we call up every icon that could possibly be used as an arrow. We've also included each icon's class name for easy copy / pasting when you're developing!
They are free to use and licensed under MIT. We intend for this icon pack to be used with uiw, but it’s by no means limited to it. Use them wherever you see fit, personal or commercial.
Installation
npm install uiw-iconfont --save
HTML Example
You can use https://uiwjs.github.io/icons/ to easily find the icon you want to use. Once you've copied the desired icon's CSS classname, simply add the icon and icon's classname, such as apple
to an HTML element.
You need link CSS
Used in Less:
;
Used in JS:
;// or;
note: It has a w-icon-
prefix.
Or use the Unicode
, You can use Unicode website to easily find the Unicode
icon you want to use.

Or manually download and link **uiw-iconfont**
in your HTML, It can also be downloaded via UNPKG:
In Webpack
test: /w-icon\.$/ use: loader: require options: limit: 8192 loader: require options: name: 'static/fonts/[name].[hash:8].[ext]'
React
Create an Icon
component.
import React from 'react';import svgPaths from 'uiw-iconfont/fonts/w-icon.json'; const renderSvgPaths = type const pathStrings = svgPathstype; if pathStrings == null return null return pathStrings PureComponent { const type color = thisprops; if type == null || typeof type === "boolean" return null; return <svg = =>this</svg> ; }
Use the Icon
component:
const demo = return <Icon ="heart-on" />
Development
Run the npm install
to install the dependencies after cloning the project and you'll be able to:
To build *.svg
*.ttf
*.woff
*.eot
files
npm run font
To build site and push gh-pages branch
npm run start
License
Created By svgtofont, Licensed under the MIT License.