@firesoon/icons-react
TypeScript icon, indicating that this package has built-in type declarations

3.0.14 • Public • Published

@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

FAQs

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

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

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

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

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

Package Sidebar

Install

npm i @firesoon/icons-react

Weekly Downloads

12

Version

3.0.14

License

ISC

Unpacked Size

3.14 MB

Total Files

4190

Last publish

Collaborators

  • linweili1201
  • wxshycat
  • wangjingren
  • ink0101
  • chenweiming
  • anglay
  • tangshuo
  • maolizi
  • firesoon-ued
  • zhouyx