# @icon-park/svg

> Pure Svg Icons for IconPark

Latest version **1.4.2** (published 2022-07-04) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @icon-park/svg
pnpm add @icon-park/svg
yarn add @icon-park/svg
bun add @icon-park/svg
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2022-07-04 |
| First published | 2020-08-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 8.0.0 |
| Dependencies | 0 |
| Unpacked size | 9.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9032 |
| Maintainers | liuxuanzy, zhangping.fe |
| Keywords | icon, icon pack, IconPark, svg, system icons, component, components, design |

## Links

- npm: https://www.npmjs.com/package/@icon-park/svg
- Repository: https://github.com/bytedance/IconPark
- Homepage: http://iconpark.bytedance.com/
- Issues: https://github.com/bytedance/IconPark/issues
- npm.io page: https://npm.io/package/@icon-park/svg

## 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
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.4.2 (latest) — 2022-07-04
- 1.4.1 — 2022-06-19
- 1.4.0 — 2022-05-17
- 1.3.5 — 2021-08-05
- 1.3.3 — 2021-03-31
- 1.3.1 — 2021-02-28
- 1.2.7 — 2021-02-08
- 1.2.6 — 2021-02-04
- 1.2.4 — 2021-01-26
- 1.2.3 — 2021-01-26
- 1.2.2 — 2021-01-17
- 1.2.1 — 2021-01-12
- 1.2.0 — 2021-01-01
- 1.1.5 — 2020-12-26
- 1.1.5-alpha.1 — 2020-12-26
- … 19 more at https://npm.io/package/@icon-park/svg/versions

## README

# IconPark Icons
> Pure SVG Icons for IconPark

## Introduction

### Features
* Provide more than 2000 icons
* Provide 4 themes:
    * outline
    * filled
    * two-tone
    * multi-color

### More
Please visit [IconPark Website](http://iconpark.bytedance.com)
* Copy SVG
* Copy React Icon component
* Copy Vue Icon component
* Download PNG
* Download SVG

## Getting Started
### Install

```
npm install @icon-park/svg --save
```

### Include Component
Import an icon from `@icon-park/svg`  and then call it:

```
import {Home} from '@icon-park/svg';

// examples

const svg = Home({theme: 'outline'});

console.log(svg);
```

### Global Config
You can use the static methods `setConfig` in `@icon-park/svg` to set the default config globally:

```typescript
import {setConfig} from '@icon-park/svg'

setConfig({
    theme: 'outline',
    size: '1em',
    strokeWidth: 4,
    strokeLinecap: 'round',
    strokeLinejoin: 'round',
    outStrokeColor: '#000',
    outFillColor: '#2F88FF',
    innerStrokeColor: '#FFF',
    innerFillColor: '#43CCF8'
})
```

### Import on Demand

You can use [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) to import icons on demand.

Set config like this:
```json
{
    "plugins": [
        [
            "import",
            {
                "libraryName": "@icon-park/svg",
                 "libraryDirectory": "es/icons",
                 "camel2DashComponentName": false 
            }
        ]
    ]
}
```
### Embed IconPark in your project 
If you need to use additional information such as icon name, author, category, label and creation time, you can use the `icons.json` file located in the root directory of each NPM.

## Props
|    prop	 | description  | type  | default | note |
| ---------- | --- | --- | --- | --- |
| theme |  Theme of the icons.  | 'outline' &#124; 'filled' &#124; 'two-tone' &#124; 'multi-color' | 'outline'  |
| size |  The width/height of the icon | number &#124; string |  '1em' |
| spin |  Rotate icon with animation | boolean | false |
| fill |  Colors of theme | string  &#124; string[] |  'currentColor' |
| strokeLinecap |  the stroke-linecap prop of svg element | 'butt' &#124; 'round' &#124; 'square' |  'round' |
| strokeLinejoin |  the stroke-linejoin prop of svg element | 'miter' &#124; 'round' &#124; 'bevel' |  'round' |
| strokeWidth |  the stroke-width prop of svg element | number |  4 |

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