@animateicons/react

中文文档
0.13.0发布于 2026/10/25MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 6.9万

动画 SVG 图标用于回放 有悬浮和必须的动画触发器. 由动起/反应而成.

中文使用文档
文档目录7 节
  1. 文档
  2. 安装
  3. 使用量
  4. 绕行,单击或双击
  5. 道具
  6. 其他框架
  7. 许可证

@ animaticons/ 反应

1500个动画SVG图标用于React. 由动起/反应而成.

npm bundle types license

文档

完整文件,访问 动能.in/icons/docs。 。 。 .

浏览所有图标 动能. in。 。 。 .

安装

npm i @animateicons/react
pnpm add @animateicons/react
yarn add @animateicons/react
bun add @animateicons/react

使用量

从中导入任意图标 lucide 或者说 huge 子路径 :

import { BellRingIcon } from "@animateicons/react/lucide";
import { HeartIcon } from "@animateicons/react/huge";

export default function Demo() {
    return <BellRingIcon size={24} color="#f45b48" />;
}

图标动画默认会徘徊.

绕行,单击或双击

每个图标都有 startAnimation() 财务报告和审定财务报表 stopAnimation()。 。 。 . useIconHover 当一个用户徘徊或点击时,请为您呼叫:

"use client";
import { useIconHover } from "@animateicons/react";
import { BellRingIcon } from "@animateicons/react/lucide";

export default function Bell() {
    const { ref, triggerProps } = useIconHover(); // hover (default)

    return (
        <button {...triggerProps}>
            <BellRingIcon ref={ref} size={28} />
        </button>
    );
}

见 完整文档 ,用于单击,同时和多个图标.

道具

Prop类型默认
sizenumber24
colorstringcurrentColor
durationnumber1
isAnimatedbooleantrue
classNamestring- 说吧

其他框架

不使用反应? 相同的图标和相同的运动船 @animateicons/vanilla 对于简单的JS和网络组件, @animateicons/vue 用于 Vue 3 和 Nuxt,以及 @animateicons/angular 为角. 文档 : 普通联署材料, (中文(简体) ), 阴道 财务报告和审定财务报表 角质。 。 。 .

许可证

麻省理工学院 阿维吉特·戴伊

图标形状基于 卢西德 财务报告和审定财务报表 巨头,参见 第三方通知。 。 。 .

版本与发布记录

@animateicons/react 共发布 26 个版本,首次发布于 2026/05/01;过去 12 个月发布了 26 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.13.0latest2026/10/2514 天前
0.12.12026/10/1721 天前
0.12.02026/10/061 个月前
0.11.02026/10/031 个月前
0.10.02026/10/021 个月前
0.9.02026/10/011 个月前

关于 @animateicons/react 的常见问题

@animateicons/react 是什么?

动画 SVG 图标用于回放 有悬浮和必须的动画触发器. 由动起/反应而成.

如何安装 @animateicons/react?

在项目目录运行 npm install @animateicons/react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0 || ^19.0.0)、react-dom(^18.0.0 || ^19.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@animateicons/react 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@animateicons/react 支持 ESM 还是 CommonJS?

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

@animateicons/react 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.17.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@animateicons/react 可以商用吗?

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

@animateicons/react 的下载量有多少?

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

@animateicons/react 还在维护吗?

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