# icon-repository-demo

> hntdi-icon-repository

Latest version **0.0.5** (published 2023-06-16) · 0 weekly downloads

## Install

```sh
npm install icon-repository-demo
pnpm add icon-repository-demo
yarn add icon-repository-demo
bun add icon-repository-demo
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2023-06-16 |
| First published | 2023-06-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | liangdou |
| Maintainers | ld1100 |

## Links

- npm: https://www.npmjs.com/package/icon-repository-demo
- npm.io page: https://npm.io/package/icon-repository-demo

## Recent versions

- 0.0.5 (latest) — 2023-06-16

## README

[English](https://github.com/yijinc/icon-repository/blob/master/README.EN.md)

## 介绍

在使用 [IconPark](https://github.com/bytedance/IconPark) 中发现不太满足项目需要，所以有了这个库，相关 [issue](https://github.com/bytedance/IconPark/issues/445)

这是最简单的SVG图标库，参考来源于 [IconPark](https://github.com/bytedance/IconPark)，
不同的是 这个库 **仅支持单色图标**，但它可能更适用于您项目中的图标

特点：

 - 只支持改变`color` 和 `size` 两个属性。
 - 设计/开发 无需按照绘制规范制作svg，在 figma\sketch\photoshop 等直接导出（任意）svg文件即可生成组件

## 安装

```
yarn add @icon-repository/react

# for vue
yarn add @icon-repository/vue-next
```

## 使用

```jsx
import { AddBaseFilled, AddBaseOutline } from '@icon-repository/react';

<AddBaseOutline color="#b0b1b8" size="20" />
```


## 新增图标

将任意svg图标文件放到 `/source` 目录下，然后执行

```bash
# 生成组件
npm run compiler

# 打包组件到 lib & es
npm run build

# 发布
npm run publish
```

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