JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q48036F

Riot.js implementation of Material Design

Package Exports

  • riot-material
  • riot-material/dist/index.es.js
  • riot-material/dist/index.js

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

Readme

Riot.js implementation of Material Design

Installation

You can install it via nodejs

npm install riot-material

or download one of the bundled file

/**
 * `dist/index.js`
 * `dist/index.min.js`
 * `dist/index+libs.js`
 * `dist/index+libs.min.js`
 */
requirejs.config({
  paths: {
      // "what-input": "path/to/what-input // if you do not use +libs bundle
      "riot-material": "path/to/riot-material",
   },
});

require(['riot-material'], function (riotMaterial) {
    // ...
});

/**
 * `dist/index.es.js`
 * npm installation
 */
import * as riotMaterial from "riot-material";

otherwise you can include the script in your project html

<!-- if you want to use the what-input library elsewhere -->
<script src="path/to/what-input.umd.js"></script>
<script src="riot-material/index.js"></script>
<!-- <script src="riot-material/index.min.js"></script> -->

<!-- or, if you want to use only riotMaterial -->
<script src="riot-material/index+libs.js"></script>
<!-- <script src="riot-material/index+libs.min.js"></script> -->

and access it via

window.riotMaterial;

Note: "riot" dependency is treated as external, be sure to have it when installing manually or including via html

Documentation

Importing this package will occur in registering all the components globally in riot

Refer to each sub-package documentation: