Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weui/weui-icon
WeUI icon
https://github.com/weui/weui-icon
Last synced: 6 days ago
JSON representation
WeUI icon
- Host: GitHub
- URL: https://github.com/weui/weui-icon
- Owner: weui
- Created: 2020-03-12T12:02:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T07:18:24.000Z (5 months ago)
- Last Synced: 2024-12-24T06:12:00.244Z (13 days ago)
- Language: JavaScript
- Size: 305 KB
- Stars: 62
- Watchers: 6
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
WeUI icon
====[![npm version](https://img.shields.io/npm/v/weui-icon.svg)](https://www.npmjs.org/package/weui-icon)
在线预览:[WeUI Icon | Iconify](https://icon-sets.iconify.design/weui/)
## 概述
WeUI icon 是 WeUI 的 配套图标库,目前分为`filled (填充)`和`outlined (描边)`两种样式,具体可见下述预览图。
## 预览图
![image](https://user-images.githubusercontent.com/2395166/76525455-d0e15b00-64a6-11ea-8274-41b930bc204c.png)
![image](https://user-images.githubusercontent.com/2395166/76525466-d63ea580-64a6-11ea-8e37-585607898ed5.png)## 使用
主要是通过**class**来控制。class 规则是`weui-icon-[style]-[name]`,比如需要展示预览图中,`filled`样式的`add-friends`,则 class 为`weui-icon-filled-add-friends`。#### link
html
```html
```#### import 所有 icon
terminal
```
npm i weui-icon
```javascript
```javascript
import 'weui-icon';
```html
```html
```#### import 单个 icon
terminal
```
npm i weui-icon
```javascript
```javascript
import 'weui-icon/dist/filled/add-friends.css';
```html
```html
```