Notorious Preying Mantis

    iconfont-plus

    0.0.1 • Public • Published

    iconfont-plus

    a react component for icons of iconfont.cn

    npm version

    Use

    1. Install
    npm i iconfont-plus
    
    1. upload your svg to iconfont.cn
    2. download your iconfont's zip
    3. add zip/iconfont.js for your project
    <script src="./iconfont.js"></script>
    1. use
    import React, { Component } from 'react'
    import Icon from 'iconfont-plus'
     
    class App extends Component {
      render() {
        return <Icon code="pen" />
      }
    }
     
    export default App

    how to upload? upload svg

    Dev

    git clone https://github.com/ThaddeusJiang/iconfont-plus.git && cd $_
    
    npm i
    npm run build
    npm link
    
    cd example
    npm link iconfont-plus
    
    yarn 
    yarn start
    

    Deploy

    npm run publish
    

    Keywords

    Install

    npm i iconfont-plus

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    2.48 kB

    Total Files

    3

    Last publish

    Collaborators

    • thaddeusjiang