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-materialor 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.appBarrm-app-bar tag - Not yet availablecomponents.buttonrm-button tagcomponents.checkboxrm-checkbox tagcomponents.dialogrm-dialog tag - Not yet availablecomponents.dividerrm-divider tag - Not yet availablecomponents.iconrm-icon tag - Not yet availablecomponents.menuItemrm-menu-item tag - Not yet availablecomponents.menurm-menu tag - Not yet availablecomponents.radiorm-radio tag - Not yet availablecomponents.selectrm-select tag - Not yet availablecomponents.tabbedPagesrm-tabbed-pages tag - Not yet availablecomponents.textfieldContainerrm-textfield-container tagcomponents.textfieldrm-textfield tagappBarUtilsapp-bar-utils sub-packagebackgroundbackground sub-package - Not yet availableelevationelevation sub-package - Not yet availablepositionControllerposition-controller sub-package - Not yet availablebeforeFocusListenerbefore-focus-listener sub-package - Not yet availablerippleripple sub-package - Not yet availablesurfacessurfaces sub-package - Not yet available