Material Design for riot-material
icon set ofInstallation
You can install it via nodejs
npm install @riot-material/rm-icon
or download one of the bundled file
/**
* `dist/index.amd.js`
* `dist/index.umd.js`
*/
requirejs.config({
paths: {
"@riot-material/rm-icon": "path/to/@riot-material/rm-icon",
},
});
require(['@riot-material/rm-icon'], function (IconComponent) {
// ...
});
/**
* `dist/index.js`
* `dist/index.es.js`
* npm installation
*/
import IconComponent from "@riot-material/rm-icon";
otherwise you can include the script in your project html
<script src="@riot-material/rm-icon/index.umd.js" />
and access it via
window.riotMaterial.components.icon;
Documentation
Just write inside the tag the name of the chosen icon
Check the available icons here