An open API service indexing awesome lists of open source software.

https://github.com/yijinc/icon-garden

๐Ÿš— the Simplest Svg icon for React,vue,svg
https://github.com/yijinc/icon-garden

react-icons svg-icons vue-icons

Last synced: about 1 year ago
JSON representation

๐Ÿš— the Simplest Svg icon for React,vue,svg

Awesome Lists containing this project

README

          

## Intro

The simplest SVG icon library, the reference comes from [IconPark](https://github.com/bytedance/IconPark).
The difference is that this library **only supports single-color icons**, but it may be more suitable for icons in your project

Features๏ผš

- Only supports changing the `color` and `size` attributes.
- Designers/developers can generate components by directly exporting (arbitrary) svg files in figma\sketch\photoshop without making svg according to drawing specifications.

## Install

```
yarn add @icon-garden/react

# for vue
yarn add @icon-garden/vue-next
```

## Usage

```jsx
import { AddBaseFilled, AddBaseOutline } from '@icon-garden/react';

```

## Add Icons

Put any svg icon file in the `/source` directory and
execute

```bash
# generate components
npm run compiler

# build components to lib & es
npm run build

# publish
npm run publish
```