README
uxcore-icon
React icon
Development
git clone https://github.com/uxcore/uxcore-icon
cd uxcore-icon
npm install
npm run server
if you'd like to save your install time,you can use uxcore-tools globally.
npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-icon
cd uxcore-icon
npm install
npm run dep
npm run start
Test Case
npm run test
Coverage
npm run coverage
Usage
<Icon usei name="menu" />
Props
Name | Type | Required | Default | Comments |
---|---|---|---|---|
usei | bool | no | false | 使用 <i> 标签渲染 ICON,建议开启 |
name | string | no | shezhi | 图标名字 |
className | string | no | 额外类名 |
其他 props 将透传给 icon 元素
Contribute
Yes please! See the CONTRIBUTING for details.