# svg-vuejs

> SVG VueJS - Vue 2.0 SVG图标组件库，用于管理和使用SVG资源

Latest version **5.0.5** (published 2026-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install svg-vuejs
pnpm add svg-vuejs
yarn add svg-vuejs
bun add svg-vuejs
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.5 |
| Published | 2026-03-27 |
| First published | 2020-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 100.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SVG VueJS Team |
| Maintainers | og-liu |
| Keywords | vue, vue2, svg, icon, component, svg-icons, svg-management, vue-components |

## Links

- npm: https://www.npmjs.com/package/svg-vuejs
- Repository: https://github.com/your-username/svg-vuejs
- Homepage: https://github.com/your-username/svg-vuejs#readme
- Issues: https://github.com/your-username/svg-vuejs/issues
- npm.io page: https://npm.io/package/svg-vuejs

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.6.7

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 5.0.5 (latest) — 2026-03-27
- 5.0.4 — 2026-03-25
- 5.0.3 — 2026-03-25
- 5.0.2 — 2026-03-25
- 5.0.1 — 2026-03-25
- 5.0.0 — 2026-03-25
- 4.1.1 — 2022-03-31
- 4.1.0 — 2022-03-22
- 4.0.9 — 2022-03-22
- 4.0.8 — 2021-09-16
- 4.0.7 — 2021-09-08
- 4.0.6 — 2021-09-08
- 4.0.5 — 2021-09-08
- 4.0.4 — 2021-09-08
- 4.0.3 — 2021-09-08
- … 26 more at https://npm.io/package/svg-vuejs/versions

## README

# svg-vuejs

Vue 2.0 SVG图标组件库，用于在Vue项目中轻松管理和使用SVG资源。

## 🚀 安装

```bash
npm install svg-vuejs@5.0.5
```

## 🎯 快速开始

```javascript
// main.js
import Vue from 'vue'
import SvgVuejs from 'svg-vuejs'

Vue.use(SvgVuejs, {
  projectId: 'your-project-id',
  apiKey: 'your-api-key',
  baseUrl: 'https://your-api.com/api'
})
```

```vue
<!-- 在组件中使用 -->
<template>
  <div>
    <svg-icon name="logo" :size="32" color="#409EFF" />
    <svg-icon name="user" size="2rem" />
  </div>
</template>
```

## 📚 完整文档

查看 [USAGE.md](./USAGE.md) 获取详细的使用说明和API文档。

## 🌟 核心特性

- ✅ Vue 2.6+ 完美兼容
- ✅ 智能缓存机制
- ✅ TypeScript 支持
- ✅ 加载状态监控
- ✅ 完善的错误处理
- ✅ 多种构建格式支持 (UMD/ESM/CommonJS)

## 🔧 功能亮点

- **SvgIcon 组件** - 简单易用的SVG图标组件
- **API 客户端** - 完整的后端API集成
- **缓存管理** - 智能的内存缓存系统
- **事件系统** - 丰富的事件通知机制

## 📖 了解更多

- [完整使用文档](./USAGE.md)
- [项目架构说明](../ARCHITECTURE.md)

## 📄 License

MIT

---
_Source: https://npm.io/package/svg-vuejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
