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
npm install riot-material
Usage
index.js
import "riot-material"
// any code herecomponent.riot
<component>
<rm-button onclick={ log }>Click me!</rm-button>
<script>
export default {
log() {
console.log("button clicked");
}
}
</script>
</component>More ui elements in the upcoming documentation. Here a list:
rm-app-barrm-bottom-sheetrm-buttonrm-checkboxrm-dialogrm-dividerrm-iconrm-list-subheaderrm-menu-itemrm-menurm-radiorm-ripplerm-selectrm-tabbed-pagesrm-tabsrm-textarearm-textfield-containerrm-textfield
There are also a couple of modules that can be used, such as:
app-bar-utilsbackgroundelevationmotionControllerpointerControllerripplesurfaces
Many of these are probably to be separated from this package, so stay tuned!
If you want to import any module separated, you should do like following, by now:
import { ... } from "riot-material/dist/cjs/<module>.js";