@mx-design/icon
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

中文

Introduction

The icon warehouse of mx-design has the following features:

Feature 1: icon-font icon to Icon component script

Script path:

./src/generateIcons.js

It also contains a use case. If you download icons from icon-font, this repository contains a script that can read the symbol-mode js file you pulled from icon-font, and then extract the tag content of all elements in it. Then they are packaged as Icon files that react can use directly.

Feature 2: Support direct use of plop templates to generate a single Icon component

npm run plop

The template configuration file is in

./plopfile.js

The template files are in

plop-templates/icon.hbs

Readme

Keywords

none

Package Sidebar

Install

npm i @mx-design/icon

Weekly Downloads

6

Version

0.7.0

License

MIT

Unpacked Size

1.16 MB

Total Files

377

Last publish

Collaborators

  • lio-mengxiang