JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q20097F
  • License MIT

Package Exports

  • riot-material

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 implementation of Material Design

Installation

You can install it via nodejs

npm install riot-material

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": "path/to/riot-material",
   },
});

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

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

otherwise you can include the script in your project html

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

and access it via

window.riotMaterial;

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

Documentation

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

Refer to each sub-package documentation:

  • components.appBar rm-app-bar tag - Not yet available
  • components.button rm-button tag
  • components.checkbox rm-checkbox tag
  • components.dialog rm-dialog tag - Not yet available
  • components.divider rm-divider tag - Not yet available
  • components.icon rm-icon tag - Not yet available
  • components.menuItem rm-menu-item tag - Not yet available
  • components.menu rm-menu tag - Not yet available
  • components.radio rm-radio tag - Not yet available
  • components.select rm-select tag - Not yet available
  • components.tabbedPages rm-tabbed-pages tag - Not yet available
  • components.textfieldContainer rm-textfield-container tag
  • components.textfield rm-textfield tag
  • appBarUtils app-bar-utils sub-package
  • background background sub-package - Not yet available
  • elevation elevation sub-package - Not yet available
  • positionController position-controller sub-package - Not yet available
  • beforeFocusListener before-focus-listener sub-package - Not yet available
  • ripple ripple sub-package - Not yet available
  • surfaces surfaces sub-package - Not yet available