New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@firesoon/icons-react

Package Overview
Dependencies
Maintainers
10
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firesoon/icons-react

火树图标库

latest
npmnpm
Version
3.1.5
Version published
Weekly downloads
37
208.33%
Maintainers
10
Weekly downloads
 
Created
Source

@firesoon/icons-react

命名规范

火树图标存放在 fs 文件夹下,文件命名前面加上 fs,例如(fs-add.svg) 商保通图标存放在 sbt 文件夹下,文件命名前面加上 sbt,例如(sbt-add.svg)

SVG to react dom

Install

This project uses node and npm

npm install @firesoon/icons-react
yarn add @firesoon/icons-react

Usage

import { User } from '@firesoon/icons-react';

// or
import User from '@firesoon/icons-react/User';

...
<User className="my-class" onClick={onClick} svgOption={{...}} />

Development

npm run start

Release

npm run build
npm publish

icon图标会存在缓存,需要清除缓存并且删除node_modules

FAQs

  • 可以使用 type 指定图标吗?

    不可以。这样不支持 tree shaking. antd v4 也取消了这种使用方式。

  • 配合 antd 的可折叠菜单使用,为什么文字还显示?

    antd 的折叠菜单搭配了 icons 的 className, 我们自己的图标库并没有,需要加上它的 className

<Home className="anticon anticon-home" />

Keywords

svg

FAQs

Package last updated on 05 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts