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