All Projects → Jeepeng → taro-icons

Jeepeng / taro-icons

Licence: MIT license
基于 Taro 的小程序图标库

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to taro-icons

taro3-vue3-template
一个基于 Taro3 和 Vue3 框架微信小程序模版。 核心技术采用Taro3、Vue3、TypeScript、NutUi、Vux4/Pinia、VueUse
Stars: ✭ 115 (+116.98%)
Mutual labels:  mini-program, taro, taro-ui
Weapp Demo Breadtrip
基于面包旅行 API 制作的微信小程序示例
Stars: ✭ 282 (+432.08%)
Mutual labels:  weixin, weapp, mini-program
Wxapp Webpack Plugin
📦 微信小程序 webpack 插件
Stars: ✭ 185 (+249.06%)
Mutual labels:  weixin, weapp, mini-program
Wux Weapp
🐶 一套组件化、可复用、易扩展的微信小程序 UI 组件库
Stars: ✭ 4,706 (+8779.25%)
Mutual labels:  weixin, weapp, mini-program
gangxiaoer-taro
博雅塔小程序,基于Taro的版本,同步发布百度小程序,支付宝小程序。
Stars: ✭ 16 (-69.81%)
Mutual labels:  weapp, taro, taro-ui
ui
We reinvent the UI for taro3+
Stars: ✭ 48 (-9.43%)
Mutual labels:  weixin, taro, taro-ui
taro-weapp
🎮一款提供餐桌,酒桌上小游戏的小程序。
Stars: ✭ 28 (-47.17%)
Mutual labels:  taro, taro-ui
Tina
💃 一款轻巧的渐进式微信小程序框架
Stars: ✭ 1,153 (+2075.47%)
Mutual labels:  weixin, weapp
Weapp Typescript
使用TypeScript开发微信小程序的demo, 包含微信小程序weixin最新的.d.ts定义
Stars: ✭ 84 (+58.49%)
Mutual labels:  weixin, weapp
Leshare Shop Weapp
基于微信小程序的电商平台,采用原生框架开发
Stars: ✭ 183 (+245.28%)
Mutual labels:  weixin, weapp
Xiaochengxu demos
小程序优秀项目源码汇总,每个项目都有图有源码,零基础学微信小程序,小程序表格,小程序视频,小程序视频弹幕,小程序仿天猫大转盘抽奖等源码,小程序云开发,小程序发邮件,小程序支付,微信支付,持续更新。。。
Stars: ✭ 855 (+1513.21%)
Mutual labels:  weixin, weapp
Wechat Weapp Movie
🎬电影推荐 - 微信小程序
Stars: ✭ 1,355 (+2456.6%)
Mutual labels:  weixin, weapp
Chronus
🕐 一款能帮助管理生活目标的微信小程序
Stars: ✭ 195 (+267.92%)
Mutual labels:  weixin, weapp
Wxparse
wxParse-微信小程序富文本解析自定义组件,支持HTML及markdown解析
Stars: ✭ 7,618 (+14273.58%)
Mutual labels:  weixin, weapp
Wemark
微信小程序Markdown渲染库
Stars: ✭ 1,159 (+2086.79%)
Mutual labels:  weixin, weapp
Taro
开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
Stars: ✭ 30,230 (+56937.74%)
Mutual labels:  weixin, taro
Weapp Workflow
基于Gulp 的微信小程序前端开发工作流 💯
Stars: ✭ 241 (+354.72%)
Mutual labels:  weixin, weapp
Vant Weapp
轻量、可靠的小程序 UI 组件库
Stars: ✭ 15,428 (+29009.43%)
Mutual labels:  weixin, weapp
yuanful-ui
(微信小程序插件) yuanful-ui是一套可添加到微信小程序内直接使用的免费功能插件,无需重复开发,为用户提供更丰富的服务。
Stars: ✭ 30 (-43.4%)
Mutual labels:  icon, mini-program
Min Cli
Min 小程序组件化解决方案
Stars: ✭ 807 (+1422.64%)
Mutual labels:  weixin, weapp

taro-icons

基于 Taro 的小程序图标库

example

特性

  • 按需加载,根据自身需要选择加载不同的图标库,减少包大小
  • 大约 6700 个 icon 可供选择

支持的图标库:

安装

npm install taro-icons --save

使用

app.js 中导入你需要的图标库scss 文件,如 MaterialIcons:

// app.js
// 请根据需要选择导入的 scss,这里全部导入
import 'taro-icons/scss/MaterialCommunityIcons.scss' // 495KB
import 'taro-icons/scss/MaterialIcons.scss' // 112KB
import 'taro-icons/scss/Ionicons.scss' // 134KB
import 'taro-icons/scss/FontAwesome.scss' // 322KB

然后在需要用到图标的地方引入对应d的component使用:

import {
  MaterialIcons,
  MaterialCommunityIcons,
  Ionicons,
  FontAwesome,
} from 'taro-icons';
...

<MaterialIcons name='settings' size={24} color='#000000' />
<MaterialCommunityIcons name='account' size={32} color='#000000' />
<Ionicons name='ios-woman' size={32} color='pink' />
<FontAwesome family='brands' name='weixin' size={32} />

其中name必填,可以在对应的网站上找到
具体用法请参考 example

Icon props

属性 说明 类型 默认值
name 需要显示的图标名称,可以在对应图标库网站找到 String
size 图标大小(px) Number 24
color 图标颜色 String #000000
family FontAwesome 特有属性(solid、regular、brands) String solid

⚠️注意事项

微信开发者工具中,选择 设置 -> 项目设置 -> 调试基础库,设置版本2.2.3及以上,图标才能正常显示

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].