# @animateicons/react 中文文档

规范地址：https://npmcn.com/package/%40animateicons/react/

版本：0\.13\.0
npm 元数据更新时间：2026-10-24T19:01:01.126Z
中文译文更新时间：2026-11-06T04:43:07.662Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40animateicons/react
原文对照：https://npmcn.com/package/%40animateicons/react/?lang=original
项目主页：https://animateicons.in/
源码仓库：https://github.com/Avijit07x/animateicons

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：7.6 MB，4518 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=18\.17\.0
- 运行依赖：0 个
- peer 依赖：react ^18\.0\.0 \|\| ^19\.0\.0，react-dom ^18\.0\.0 \|\| ^19\.0\.0
- 首次发布：2026-04-30T22:56:25.188Z
- 最新版本发布：2026-10-24T19:01:00.658Z
- 近 30 天下载量：69346（2026-10-06 至 2026-11-04，npm 官方下载统计）
- 已发布版本数：26（近 12 个月 26 个）

## 中文简介

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

## 安装

```sh
npm install @animateicons/react
```

也可以使用：`pnpm add @animateicons/react`、`yarn add @animateicons/react`、`bun add @animateicons/react`

## README

# @ animaticons/ 反应

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

[![npm](https://img.shields.io/npm/v/@animateicons/react?color=f45b48)](https://www.npmjs.com/package/@animateicons/react) [![bundle](https://img.shields.io/bundlephobia/minzip/@animateicons/react)](https://bundlephobia.com/package/@animateicons/react) [![types](https://img.shields.io/npm/types/@animateicons/react?color=blue)](https://www.npmjs.com/package/@animateicons/react) [![license](https://img.shields.io/npm/l/@animateicons/react?color=f45b48)](https://npmcn.com/package/%40animateicons/react/LICENSE)

## 文档

完整文件,访问 [动能.in/icons/docs](https://animateicons.in/icons/docs)。 。 。 .

浏览所有图标 [动能. in](https://animateicons.in/)。 。 。 .

## 安装

```bash
npm i @animateicons/react
```

```bash
pnpm add @animateicons/react
```

```bash
yarn add @animateicons/react
```

```bash
bun add @animateicons/react
```

## 使用量

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

```tsx
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` 当一个用户徘徊或点击时,请为您呼叫:

```tsx
"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>
    );
}
```

见 [完整文档](https://animateicons.in/icons/docs/examples/hover-helper) ,用于单击,同时和多个图标.

## 道具

| Prop | 类型 | 默认 |
| --- | --- | --- |
| `size` | `number` | `24` |
| `color` | `string` | `currentColor` |
| `duration` | `number` | `1` |
| `isAnimated` | `boolean` | `true` |
| `className` | `string` | \- 说吧 |

## 其他框架

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

## 许可证

麻省理工学院 [阿维吉特·戴伊](https://github.com/Avijit07x)

图标形状基于 [卢西德](https://lucide.dev/) 财务报告和审定财务报表 [巨头](https://hugeicons.com/),参见 [第三方通知](https://npmcn.com/package/%40animateicons/react/THIRD_PARTY_NOTICES.md)。 。 。 .

## 常见问题

### @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 和提交记录判断。

