🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@pisell/icon

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pisell/icon

pisell icon

latest
npmnpm
Version
0.0.11
Version published
Weekly downloads
608
19.92%
Maintainers
5
Weekly downloads
 
Created
Source

@pisell/icon

pisell svg 图标组件库

使用方法

要使用 @pisell/icon 组件库,按照以下步骤操作:

  • 在你的项目中,从 @pisell/icon 中导入所需的图标组件并使用,例如:
    import { GoogleChrome } from '@pisell/icon';
    const MyComponent = () => {
        return (<GoogleChrome />);
};

添加图标

为了添加新的图标到组件库中,请按照以下步骤进行操作:

  • 将 SVG 文件放置于 originalSvg 文件夹下。
  • 运行 npm run generate 脚本来生成 src 目录文件下的新文件。

发布

要发布组件库,按照以下步骤进行操作:

  • 生成完整 src 目录后 执行 npm run build 打包 ES和lib版本。
  • 执行 npm run publish 命令进行发布。

FAQs

Package last updated on 17 Jul 2024

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