@cryp2knight/vue-feather-icons

中文文档
4.29.1发布于 2023/10/30MITESM + CJS近 30 天下载 3600

Simply beautiful open source icons as Vue functional components.

原始使用文档
文档目录7 节
  1. Install
  2. Usage
  3. Sizing
  4. Tree shaking
  5. Related
  6. Contributing
  7. Author

vue-feather-icons

NPM version NPM downloads CircleCI donate

Install

yarn add vue-feather-icons

Usage

// Only import what you need!
import { AirplayIcon, AtSignIcon, ... } from 'vue-feather-icons'

See all icons and usage here: https://vue-feather-icons.egoist.dev

Sizing

By default, icons will be sized based on the font size of the parent element.

You can set a custom size using the size attribute. For multiple based sizing, pass the desired multiple followed by an x.

<activity-icon size="1.5x" class="custom-class"></activity-icon> 

You can also set a px size directly by just passing an integer

<activity-icon size="25" class="custom-class"></activity-icon> 

Tree shaking

By using ES imports like import { AirplayIcon } from 'vue-feather-icons' with webpack + minifier or Rollup, unused exports in this module will be automatically eliminated.

To make webpack tree shaking work without using any minifier, you can use the per-file icons from icons directory, e.g. import AirplayIcon from 'vue-feather-icons/icons/AirplayIcon'.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vue-feather-icons © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoist.dev · GitHub @egoist · Twitter @poorlybatched

版本与发布记录

@cryp2knight/vue-feather-icons 共发布 1 个版本,首次发布于 2023/10/30;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.29.1latest2023/10/303 年前

关于 @cryp2knight/vue-feather-icons 的常见问题

@cryp2knight/vue-feather-icons 是什么?

Simply beautiful open source icons as Vue functional components.

如何安装 @cryp2knight/vue-feather-icons?

在项目目录运行 npm install @cryp2knight/vue-feather-icons,或使用 pnpm add / yarn add / bun add。

@cryp2knight/vue-feather-icons 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cryp2knight__vue-feather-icons 是否存在。

@cryp2knight/vue-feather-icons 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@cryp2knight/vue-feather-icons 可以商用吗?

@cryp2knight/vue-feather-icons 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cryp2knight/vue-feather-icons 的下载量有多少?

根据 npm 官方下载统计,@cryp2knight/vue-feather-icons 在 2026/10/11 – 2026/11/09 这 30 天内被下载 3,600 次,日均约 120 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cryp2knight/vue-feather-icons 还在维护吗?

最新版本 4.29.1 发布于 2023/10/30(3 年前);至今共发布 1 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。