JSPM

@riot-material/rm-icon

1.2.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q18037F
    • License MIT

    Package Exports

    • @riot-material/rm-icon

    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 (@riot-material/rm-icon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    icon set of Material Design for riot-material

    Installation

    You can install it via nodejs

    npm install @riot-material/rm-icon

    or download one of the bundled file

    /**
     * `dist/index.amd.js`
     * `dist/index.umd.js`
     */
    requirejs.config({
      paths: {
          "@riot-material/rm-icon": "path/to/@riot-material/rm-icon",
       },
    });
    
    require(['@riot-material/rm-icon'], function (IconComponent) {
        // ...
    });
    
    /**
     * `dist/index.js`
     * `dist/index.es.js`
     * npm installation
     */
    import IconComponent from "@riot-material/rm-icon";
    

    otherwise you can include the script in your project html

    <script src="@riot-material/rm-icon/index.umd.js" />

    and access it via

    window.riotMaterial.components.icon;

    Documentation

    Just write inside the tag the name of the chosen icon

    Check the available icons here