JSPM

@riot-material/rm-menu-item

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

    Package Exports

    • @riot-material/rm-menu-item

    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-menu-item) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    menu item component based on Material Design for riot-material

    Installation

    You can install it via nodejs

    npm install @riot-material/rm-menu-item

    or download one of the bundled file

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

    otherwise you can include the script in your project html

    <script src="@riot-material/rm-menu-item/index.umd.js" />
    <!-- or -->
    <script src="@riot-material/rm-menu-item/index.umd+libs.js" />

    and access it via

    window.riotMaterial.components.menuItem;

    Note: all the bundled file having +libs contain also the dependencies needed by the component, which, in this case, are:
    @riot-material/ripple
    Be sure to have them when installing manually or including via html

    Properties

    tabindex

    Slots

    default