JSPM

cmicons-react

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q53963F
  • License MIT

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cmicons-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Basic Usage

    Collection Open source Svg icons and generate React Vue component, now collect jamicons humbleicons

    使用说明

    React

    First, install cmicons-react from npm:

    npm install cmicons-react

    Now each icon can be imported individually as a React component:

    Jam icons

    import { SearchIcon } from 'cmicons-react/jam'
    
    function MyComponent() {
      return (
        <div>
          <SearchIcon />
          <p>...</p>
        </div>
      )
    }

    Humble icons

    import { SearchIcon } from 'cmicons-react/humble'
    
    function MyComponent() {
      return (
        <div>
          <SearchIcon />
          <p>...</p>
        </div>
      )
    }

    License

    This library is MIT licensed.